Fix test building.

This commit is contained in:
Dave Davenport 2017-06-21 19:18:57 +02:00
parent 77a4d97262
commit 69d32164c9
5 changed files with 4 additions and 18 deletions

View File

@ -239,13 +239,6 @@ ThemeWidget *rofi_theme_find_or_create_name ( ThemeWidget *base, const char *nam
*/
void rofi_theme_print ( ThemeWidget *widget );
/**
* @param widget The widget handle.
*
* Print out the theme and config to the commandline.
*/
void rofi_dump_config ( ThemeWidget *widget );
/**
* @param type The type of the property to create.
*

View File

@ -169,6 +169,6 @@ gboolean config_parse_set_property ( const Property *p, char **error );
/**
* @brief Dump configuration in rasi format.
*/
void config_parse_dump_config ( void );
void config_parse_dump_config_rasi_format ( void );
/* @}*/
#endif

View File

@ -898,7 +898,8 @@ int main ( int argc, char *argv[] )
return EXIT_SUCCESS;
}
if ( find_arg ( "-dump-config" ) >= 0 ) {
rofi_dump_config ( rofi_theme );
config_parse_dump_config_rasi_format ( );
rofi_theme_print ( rofi_theme );
cleanup ();
return EXIT_SUCCESS;
}

View File

@ -290,14 +290,6 @@ void rofi_theme_print ( ThemeWidget *widget )
}
}
void rofi_dump_config ( ThemeWidget *widget )
{
config_parse_dump_config ( );
if ( widget != NULL ) {
rofi_theme_print_index ( widget );
}
}
/**
* Main lex parser.
*/

View File

@ -557,7 +557,7 @@ static void config_parse_dump_config_option ( XrmOption *option )
printf ( "\n" );
}
void config_parse_dump_config ( void )
void config_parse_dump_config_rasi_format ( void )
{
printf ( "configuration {\n" );