mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix: #409 Use display-name for prompt.
This commit is contained in:
parent
3668d5e330
commit
5b3239a748
3 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
/*@}*/
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue