diff --git a/include/theme.h b/include/theme.h index 28c8f225..c0182e64 100644 --- a/include/theme.h +++ b/include/theme.h @@ -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. * diff --git a/include/xrmoptions.h b/include/xrmoptions.h index 2a01d72c..2d2f2b91 100644 --- a/include/xrmoptions.h +++ b/include/xrmoptions.h @@ -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 diff --git a/source/rofi.c b/source/rofi.c index fbce9631..8179e1fe 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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; } diff --git a/source/theme.c b/source/theme.c index c09f9c52..b929a9ea 100644 --- a/source/theme.c +++ b/source/theme.c @@ -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. */ diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 03ded07c..05fef439 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -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" );