1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-01-27 15:25:24 -05:00

Merge remote-tracking branch 'origin/master' into highlight_match

This commit is contained in:
Dave Davenport 2016-05-23 17:11:41 +02:00
commit 7aff2ae243
3 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -114,7 +114,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" );
}
/*@}*/

View file

@ -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 );