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 ); 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. * @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. * @brief Dump configuration in rasi format.
*/ */
void config_parse_dump_config ( void ); void config_parse_dump_config_rasi_format ( void );
/* @}*/ /* @}*/
#endif #endif

View file

@ -898,7 +898,8 @@ int main ( int argc, char *argv[] )
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
if ( find_arg ( "-dump-config" ) >= 0 ) { if ( find_arg ( "-dump-config" ) >= 0 ) {
rofi_dump_config ( rofi_theme ); config_parse_dump_config_rasi_format ( );
rofi_theme_print ( rofi_theme );
cleanup (); cleanup ();
return EXIT_SUCCESS; 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. * Main lex parser.
*/ */

View file

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