mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Replace g_log by g_debug
This commit is contained in:
parent
bac92616d3
commit
9b0d1faacf
2 changed files with 7 additions and 7 deletions
|
@ -311,9 +311,9 @@ if ( queue == NULL ){
|
|||
g_assert ( top != NULL );
|
||||
char *filename = rofi_theme_parse_prepare_file ( &yytext[1], top->filename );
|
||||
if ( g_list_find_custom ( imported_files, filename, (GCompareFunc)g_strcmp0 ) != NULL ) {
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Skipping file: '%s' already parsed.", filename );
|
||||
g_debug ( "Skipping file: '%s' already parsed.", filename );
|
||||
} else {
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Parsing file: '%s'", filename );
|
||||
g_debug ( "Parsing file: '%s'", filename );
|
||||
FILE *f = fopen ( filename, "rb" );
|
||||
if ( f ) {
|
||||
top->location = *yylloc;
|
||||
|
@ -605,7 +605,7 @@ gboolean rofi_theme_parse_file ( const char *file )
|
|||
current = po;
|
||||
imported_files = g_list_append ( imported_files, po->filename );
|
||||
g_queue_push_head ( file_queue, po );
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Parsing top file: '%s'", filename );
|
||||
g_debug ( "Parsing top file: '%s'", filename );
|
||||
|
||||
int parser_retv = yyparse ( file );
|
||||
yylex_destroy ();
|
||||
|
@ -642,7 +642,7 @@ gboolean rofi_theme_parse_string ( const char *string )
|
|||
po->str_len = strlen(string);
|
||||
current = po;
|
||||
g_queue_push_head ( file_queue, po );
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Parsing string: '%s'", string );
|
||||
g_debug ( "Parsing string: '%s'", string );
|
||||
|
||||
int parser_retv = yyparse ( string );
|
||||
yylex_destroy ();
|
||||
|
|
|
@ -467,11 +467,11 @@ static gpointer drun_icon_fetch ( gpointer data )
|
|||
}
|
||||
gchar *icon_path = nk_xdg_theme_get_icon ( pd->xdg_context, pd->icon_theme, "Applications", dr->icon_name, dr->icon_size, 1, TRUE );
|
||||
if ( icon_path == NULL ) {
|
||||
g_log ( G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Failed to get Icon %s(%d): n/a", dr->icon_name, dr->icon_size );
|
||||
g_debug ( "Failed to get Icon %s(%d): n/a", dr->icon_name, dr->icon_size );
|
||||
continue;
|
||||
}
|
||||
else{
|
||||
g_log ( G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Found Icon %s(%d): %s", dr->icon_name, dr->icon_size, icon_path );
|
||||
g_debug ( "Found Icon %s(%d): %s", dr->icon_name, dr->icon_size, icon_path );
|
||||
}
|
||||
cairo_surface_t *icon_surf = NULL;
|
||||
if ( g_str_has_suffix ( icon_path, ".png" ) ) {
|
||||
|
@ -481,7 +481,7 @@ static gpointer drun_icon_fetch ( gpointer data )
|
|||
icon_surf = cairo_image_surface_create_from_svg ( icon_path, dr->icon_size);
|
||||
}
|
||||
else {
|
||||
g_log ( G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Icon type not yet supported: %s", icon_path );
|
||||
g_debug ( "Icon type not yet supported: %s", icon_path );
|
||||
}
|
||||
if ( icon_surf ) {
|
||||
// Check if surface is valid.
|
||||
|
|
Loading…
Reference in a new issue