mirror of
https://github.com/lbonn/rofi
synced 2024-11-30 07:40:26 +00:00
Fix detection no theme.
This commit is contained in:
parent
e8eecae4c4
commit
e0e6c5e670
1 changed files with 9 additions and 0 deletions
|
@ -855,6 +855,15 @@ gboolean rofi_theme_is_empty ( void )
|
||||||
if ( rofi_theme->properties == NULL && rofi_theme->num_widgets == 0 ) {
|
if ( rofi_theme->properties == NULL && rofi_theme->num_widgets == 0 ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
if ( rofi_theme->num_widgets == 3 ) {
|
||||||
|
// HACK: check for default added elements.
|
||||||
|
for ( unsigned int i = 0; i < rofi_theme->num_widgets;i++) {
|
||||||
|
if ( strncmp ( rofi_theme->widgets[i]->name, "element", 7) != 0 ){
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue