summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/test_xr.txt4
-rw-r--r--source/mode.c1
-rw-r--r--source/rofi.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/doc/test_xr.txt b/doc/test_xr.txt
index 62fbfa48..ce1be8b6 100644
--- a/doc/test_xr.txt
+++ b/doc/test_xr.txt
@@ -207,6 +207,6 @@ rofi.display-drun: 
! The display name of this browser
rofi.display-window: 
! The display name of this browser
-rofi.display-windowcd: (windowcd)
+rofi.display-windowcd: windowcd
! The display name of this browser
-rofi.display-combi: (combi)
+rofi.display-combi: combi
diff --git a/source/mode.c b/source/mode.c
index 2e5b1969..c739d2d6 100644
--- a/source/mode.c
+++ b/source/mode.c
@@ -120,7 +120,6 @@ const char *mode_get_display_name ( const Mode *mode )
void mode_set_config ( Mode *mode )
{
snprintf ( mode->cfg_name_key, 128, "display-%s", mode->name );
- mode->display_name = g_strdup_printf ( "(%s)", mode->name );
config_parser_add_option ( xrm_String, mode->cfg_name_key, (void * *) &( mode->display_name ), "The display name of this browser" );
}
/*@}*/
diff --git a/source/rofi.c b/source/rofi.c
index be1abe10..474deebb 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -161,7 +161,7 @@ static void teardown ( int pfd )
static void __run_switcher_internal ( ModeMode mode, char *input )
{
- char *prompt = g_strdup_printf ( "%s:", mode_get_name ( modi[mode] ) );
+ char *prompt = g_strdup_printf ( "%s:", mode_get_display_name ( modi[mode] ) );
curr_switcher = mode;
RofiViewState * state = rofi_view_create ( modi[mode], input, prompt, NULL, MENU_NORMAL, process_result );
g_free ( prompt );