mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Indent
This commit is contained in:
parent
4ac428bace
commit
9cd1e3fac2
9 changed files with 162 additions and 160 deletions
|
@ -585,8 +585,9 @@ static void drun_icon_fetch ( gpointer data, gpointer user_data )
|
||||||
const gchar *icon_path;
|
const gchar *icon_path;
|
||||||
gchar *icon_path_ = NULL;
|
gchar *icon_path_ = NULL;
|
||||||
|
|
||||||
if ( g_path_is_absolute ( dr->icon_name ) )
|
if ( g_path_is_absolute ( dr->icon_name ) ) {
|
||||||
icon_path = dr->icon_name;
|
icon_path = dr->icon_name;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
icon_path = icon_path_ = nk_xdg_theme_get_icon ( pd->xdg_context, themes, NULL, dr->icon_name, dr->icon_size, 1, TRUE );
|
icon_path = icon_path_ = nk_xdg_theme_get_icon ( pd->xdg_context, themes, NULL, dr->icon_name, dr->icon_size, 1, TRUE );
|
||||||
if ( icon_path_ == NULL ) {
|
if ( icon_path_ == NULL ) {
|
||||||
|
@ -675,7 +676,6 @@ static int drun_mode_init ( Mode *sw )
|
||||||
const char *current_desktop = g_getenv ( "XDG_CURRENT_DESKTOP" );
|
const char *current_desktop = g_getenv ( "XDG_CURRENT_DESKTOP" );
|
||||||
pd->current_desktop_list = current_desktop ? g_strsplit ( current_desktop, ":", 0 ) : NULL;
|
pd->current_desktop_list = current_desktop ? g_strsplit ( current_desktop, ":", 0 ) : NULL;
|
||||||
|
|
||||||
|
|
||||||
// Theme
|
// Theme
|
||||||
pd->xdg_context = nk_xdg_theme_context_new ( drun_icon_fallback_themes, NULL );
|
pd->xdg_context = nk_xdg_theme_context_new ( drun_icon_fallback_themes, NULL );
|
||||||
nk_xdg_theme_preload_themes_icon ( pd->xdg_context, themes );
|
nk_xdg_theme_preload_themes_icon ( pd->xdg_context, themes );
|
||||||
|
|
|
@ -95,7 +95,9 @@ static char ** __history_get_element_list_fields ( FILE *fd, unsigned int *lengt
|
||||||
// Jump to the first space.
|
// Jump to the first space.
|
||||||
const char *start = strchr ( buffer, ' ' );
|
const char *start = strchr ( buffer, ' ' );
|
||||||
// not found, skip.
|
// not found, skip.
|
||||||
if ( start == NULL ) continue;
|
if ( start == NULL ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
start++;
|
start++;
|
||||||
// remove trailing \n
|
// remove trailing \n
|
||||||
buffer[l - 1] = '\0';
|
buffer[l - 1] = '\0';
|
||||||
|
@ -110,7 +112,6 @@ static char ** __history_get_element_list_fields ( FILE *fd, unsigned int *lengt
|
||||||
retv[( *length ) + 1] = NULL;
|
retv[( *length ) + 1] = NULL;
|
||||||
|
|
||||||
( *length )++;
|
( *length )++;
|
||||||
|
|
||||||
}
|
}
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,7 +297,8 @@ static void rofi_theme_print_index ( ThemeWidget *widget )
|
||||||
fputs ( name, stdout );
|
fputs ( name, stdout );
|
||||||
if ( iter->prev == NULL && iter->next ) {
|
if ( iter->prev == NULL && iter->next ) {
|
||||||
putchar ( ' ' );
|
putchar ( ' ' );
|
||||||
} else if ( iter->next ) {
|
}
|
||||||
|
else if ( iter->next ) {
|
||||||
putchar ( '.' );
|
putchar ( '.' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue