1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Fix combi and drun and localization

This commit is contained in:
Dave Davenport 2015-11-03 19:57:07 +01:00
parent 80ac118655
commit 4c8404f87d
2 changed files with 6 additions and 6 deletions

View file

@ -29,10 +29,7 @@
#include <stdio.h>
#include <rofi.h>
#include <dialogs/run.h>
#include <dialogs/ssh.h>
#include <dialogs/window.h>
#include <dialogs/script.h>
#include <dialogs/dialogs.h>
/**
* Combi Switcher
@ -82,6 +79,9 @@ static void combi_mode_parse_switchers ( Switcher *sw )
else if ( strcasecmp ( token, "run" ) == 0 ) {
pd->switchers[pd->num_switchers++] = &run_mode;
}
else if ( strcasecmp ( token, "drun" ) == 0 ) {
pd->switchers[pd->num_switchers++] = &drun_mode;
}
else {
// If not build in, use custom switchers.
Switcher *sw = script_switcher_parse_setup ( token );

View file

@ -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 ) ) {
gchar *n = NULL;
gchar *gn = NULL;
n = g_key_file_get_string ( kf, "Desktop Entry", "Name", NULL );
gn = g_key_file_get_string ( kf, "Desktop Entry", "GenericName", NULL );
n = g_key_file_get_locale_string ( kf, "Desktop Entry", "Name", NULL, NULL );
gn = g_key_file_get_locale_string ( kf, "Desktop Entry", "GenericName", NULL, NULL );
if ( gn == NULL ) {
pd->cmd_list[pd->cmd_list_length] = g_markup_escape_text ( n, -1 );
}