mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
parent
c405c748a2
commit
1dccdb302e
3 changed files with 2 additions and 11 deletions
|
@ -52,8 +52,6 @@ typedef enum
|
|||
MENU_ERROR_DIALOG = 4,
|
||||
/** INDICATOR */
|
||||
MENU_INDICATOR = 8,
|
||||
/** Show column */
|
||||
MENU_PROMPT_COLON = 16,
|
||||
} MenuFlags;
|
||||
|
||||
/**
|
||||
|
|
|
@ -182,7 +182,7 @@ static void run_switcher ( ModeMode mode )
|
|||
return;
|
||||
}
|
||||
curr_switcher = mode;
|
||||
RofiViewState * state = rofi_view_create ( modi[mode], config.filter, MENU_PROMPT_COLON, process_result );
|
||||
RofiViewState * state = rofi_view_create ( modi[mode], config.filter, 0, process_result );
|
||||
if ( state ) {
|
||||
rofi_view_set_active ( state );
|
||||
}
|
||||
|
|
|
@ -244,14 +244,7 @@ static void rofi_view_update_prompt ( RofiViewState *state )
|
|||
{
|
||||
if ( state->prompt ) {
|
||||
const char *str = mode_get_display_name ( state->sw );
|
||||
if ( ( state->menu_flags & MENU_PROMPT_COLON ) != 0 ) {
|
||||
char *pr = g_strconcat ( str, ":", NULL );
|
||||
textbox_text ( state->prompt, pr );
|
||||
g_free ( pr );
|
||||
}
|
||||
else {
|
||||
textbox_text ( state->prompt, str );
|
||||
}
|
||||
textbox_text ( state->prompt, str );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue