diff --git a/include/xrmoptions.h b/include/xrmoptions.h index 573ad810..7e7735f8 100644 --- a/include/xrmoptions.h +++ b/include/xrmoptions.h @@ -80,16 +80,6 @@ typedef enum xrm_Char = 4 } XrmOptionType; -/** - * @param xcb Handler object holding connection used to fetch the settings from. - * - * Parse the rofi related X resource options of the - * connected X server. - * - * @ingroup CONFXServer - */ -void config_parse_xresource_options ( xcb_stuff *xcb ); - /** * @param filename The xresources file to parse * diff --git a/source/rofi.c b/source/rofi.c index 6d066f54..06ac90ec 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -947,8 +947,6 @@ int main ( int argc, char *argv[] ) } g_free ( etc ); } - // Load in config from X resources. - config_parse_xresource_options ( xcb ); if ( config_path_new && g_file_test ( config_path_new, G_FILE_TEST_IS_REGULAR ) ) { if ( rofi_theme_parse_file ( config_path_new ) ) { diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 727476fd..549ec240 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -45,7 +45,6 @@ /** Different sources of configuration. */ const char * const ConfigSourceStr[] = { "Default", - "XResources", "File", "Rasi File", "Commandline", @@ -54,10 +53,9 @@ const char * const ConfigSourceStr[] = { enum ConfigSource { CONFIG_DEFAULT = 0, - CONFIG_XRESOURCES = 1, - CONFIG_FILE = 2, - CONFIG_FILE_THEME = 3, - CONFIG_CMDLINE = 4 + CONFIG_FILE = 1, + CONFIG_FILE_THEME = 2, + CONFIG_CMDLINE = 3 }; typedef struct @@ -335,15 +333,7 @@ static void __config_parse_xresource_options_dynamic ( xcb_xrm_database_t *xDB, g_free ( name ); } } -void config_parse_xresource_options ( xcb_stuff *xcb ) -{ - xcb_xrm_database_t *xDB = xcb_xrm_database_from_default ( xcb->connection ); - if ( xDB ) { - __config_parse_xresource_options ( xDB, CONFIG_XRESOURCES ); - __config_parse_xresource_options_dynamic ( xDB, CONFIG_XRESOURCES ); - xcb_xrm_database_free ( xDB ); - } -} + void config_parse_xresource_options_file ( const char *filename ) { if ( !filename ) {