mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-17 15:45:56 -05:00
Fix combi and drun and localization
This commit is contained in:
parent
80ac118655
commit
4c8404f87d
2 changed files with 6 additions and 6 deletions
|
@ -29,10 +29,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <rofi.h>
|
#include <rofi.h>
|
||||||
|
|
||||||
#include <dialogs/run.h>
|
#include <dialogs/dialogs.h>
|
||||||
#include <dialogs/ssh.h>
|
|
||||||
#include <dialogs/window.h>
|
|
||||||
#include <dialogs/script.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Combi Switcher
|
* Combi Switcher
|
||||||
|
@ -82,6 +79,9 @@ static void combi_mode_parse_switchers ( Switcher *sw )
|
||||||
else if ( strcasecmp ( token, "run" ) == 0 ) {
|
else if ( strcasecmp ( token, "run" ) == 0 ) {
|
||||||
pd->switchers[pd->num_switchers++] = &run_mode;
|
pd->switchers[pd->num_switchers++] = &run_mode;
|
||||||
}
|
}
|
||||||
|
else if ( strcasecmp ( token, "drun" ) == 0 ) {
|
||||||
|
pd->switchers[pd->num_switchers++] = &drun_mode;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// If not build in, use custom switchers.
|
// If not build in, use custom switchers.
|
||||||
Switcher *sw = script_switcher_parse_setup ( token );
|
Switcher *sw = script_switcher_parse_setup ( token );
|
||||||
|
|
|
@ -139,8 +139,8 @@ static void get_apps_dir ( DRunModePrivateData *pd, const char *bp )
|
||||||
if ( g_key_file_has_key ( kf, "Desktop Entry", "Name", NULL ) ) {
|
if ( g_key_file_has_key ( kf, "Desktop Entry", "Name", NULL ) ) {
|
||||||
gchar *n = NULL;
|
gchar *n = NULL;
|
||||||
gchar *gn = NULL;
|
gchar *gn = NULL;
|
||||||
n = g_key_file_get_string ( kf, "Desktop Entry", "Name", NULL );
|
n = g_key_file_get_locale_string ( kf, "Desktop Entry", "Name", NULL, NULL );
|
||||||
gn = g_key_file_get_string ( kf, "Desktop Entry", "GenericName", NULL );
|
gn = g_key_file_get_locale_string ( kf, "Desktop Entry", "GenericName", NULL, NULL );
|
||||||
if ( gn == NULL ) {
|
if ( gn == NULL ) {
|
||||||
pd->cmd_list[pd->cmd_list_length] = g_markup_escape_text ( n, -1 );
|
pd->cmd_list[pd->cmd_list_length] = g_markup_escape_text ( n, -1 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue