mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Merge remote-tracking branch 'gitcreate/master'
This commit is contained in:
commit
88cde09055
3 changed files with 9 additions and 5 deletions
|
@ -108,7 +108,7 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0])
|
||||||
GW_CHECK_XCB([xcb-aux xcb-xkb xkbcommon >= 0.5.0 xkbcommon-x11 xcb-ewmh xcb-icccm xcb-xrm xcb-randr xcb-xinerama])
|
GW_CHECK_XCB([xcb-aux xcb-xkb xkbcommon >= 0.5.0 xkbcommon-x11 xcb-ewmh xcb-icccm xcb-xrm xcb-randr xcb-xinerama])
|
||||||
PKG_CHECK_MODULES([pango], [pango pangocairo])
|
PKG_CHECK_MODULES([pango], [pango pangocairo])
|
||||||
PKG_CHECK_MODULES([cairo], [cairo cairo-xcb])
|
PKG_CHECK_MODULES([cairo], [cairo cairo-xcb])
|
||||||
PKG_CHECK_MODULES([libsn], [libstartup-notification-1.0])
|
PKG_CHECK_MODULES([libsn], [libstartup-notification-1.0 libprofiler])
|
||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------
|
||||||
|
|
|
@ -1068,14 +1068,17 @@ int main ( int argc, char *argv[] )
|
||||||
if ( !dmenu_mode ) {
|
if ( !dmenu_mode ) {
|
||||||
// setup_modi
|
// setup_modi
|
||||||
setup_modi ();
|
setup_modi ();
|
||||||
|
TICK_N ( "Setup Modi" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( find_arg ( "-no-config" ) < 0 ) {
|
if ( find_arg ( "-no-config" ) < 0 ) {
|
||||||
// Reload for dynamic part.
|
// Reload for dynamic part.
|
||||||
load_configuration_dynamic ( );
|
load_configuration_dynamic ( );
|
||||||
|
TICK_N ( "Load config dynamic" );
|
||||||
}
|
}
|
||||||
// Parse command line for settings, independent of other -no-config.
|
// Parse command line for settings, independent of other -no-config.
|
||||||
config_parse_cmd_options_dynamic ( );
|
config_parse_cmd_options_dynamic ( );
|
||||||
|
TICK_N ( "Load cmd config dynamic" );
|
||||||
|
|
||||||
if ( config.theme ) {
|
if ( config.theme ) {
|
||||||
TICK_N ( "Parse theme" );
|
TICK_N ( "Parse theme" );
|
||||||
|
|
|
@ -314,17 +314,18 @@ static ThemeWidget *rofi_theme_find ( ThemeWidget *widget, const char *name, con
|
||||||
if ( widget == NULL || name == NULL ) {
|
if ( widget == NULL || name == NULL ) {
|
||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
char **names = g_strsplit ( name, ".", 0 );
|
char *tname = g_strdup(name );
|
||||||
|
char *saveptr = NULL;
|
||||||
int found = TRUE;
|
int found = TRUE;
|
||||||
for ( unsigned int i = 0; found && names && names[i]; i++ ) {
|
for (const char *iter = strtok_r (tname, ".", &saveptr); iter != NULL ; iter = strtok_r ( NULL, "." , &saveptr ) ) {
|
||||||
found = FALSE;
|
found = FALSE;
|
||||||
ThemeWidget *f = rofi_theme_find_single ( widget, names[i] );
|
ThemeWidget *f = rofi_theme_find_single ( widget, iter );
|
||||||
if ( f != widget ) {
|
if ( f != widget ) {
|
||||||
widget = f;
|
widget = f;
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_strfreev ( names );
|
g_free ( tname );
|
||||||
if ( !exact || found ) {
|
if ( !exact || found ) {
|
||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue