mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Fix string handling for Turkish locale
This commit is contained in:
@@ -484,18 +484,18 @@ menu_create (GtkWidget *menu, GSList *list, char *target, int check_path)
|
||||
{
|
||||
pop = (struct popup *) list->data;
|
||||
|
||||
if (!strncasecmp (pop->name, "SUB", 3))
|
||||
if (!g_ascii_strncasecmp (pop->name, "SUB", 3))
|
||||
{
|
||||
childcount = 0;
|
||||
tempmenu = menu_quick_sub (pop->cmd, tempmenu, &subitem, XCMENU_DOLIST|XCMENU_MNEMONIC, -1);
|
||||
|
||||
} else if (!strncasecmp (pop->name, "TOGGLE", 6))
|
||||
} else if (!g_ascii_strncasecmp (pop->name, "TOGGLE", 6))
|
||||
{
|
||||
childcount++;
|
||||
menu_toggle_item (pop->name + 7, tempmenu, toggle_cb, pop->cmd,
|
||||
cfg_get_bool (pop->cmd));
|
||||
|
||||
} else if (!strncasecmp (pop->name, "ENDSUB", 6))
|
||||
} else if (!g_ascii_strncasecmp (pop->name, "ENDSUB", 6))
|
||||
{
|
||||
/* empty sub menu due to no programs in PATH? */
|
||||
if (check_path && childcount < 1)
|
||||
@@ -506,7 +506,7 @@ menu_create (GtkWidget *menu, GSList *list, char *target, int check_path)
|
||||
tempmenu = menu_quick_endsub ();
|
||||
/* If we get here and tempmenu equals menu that means we havent got any submenus to exit from */
|
||||
|
||||
} else if (!strncasecmp (pop->name, "SEP", 3))
|
||||
} else if (!g_ascii_strncasecmp (pop->name, "SEP", 3))
|
||||
{
|
||||
menu_quick_item (0, 0, tempmenu, XCMENU_SHADED, 0, 0);
|
||||
|
||||
@@ -2190,7 +2190,7 @@ menu_create_main (void *accel_group, int bar, int away, int toplevel,
|
||||
g_object_get (settings, "gtk-key-theme-name", &key_theme, NULL);
|
||||
if (key_theme)
|
||||
{
|
||||
if (!strcasecmp (key_theme, "Emacs"))
|
||||
if (!g_ascii_strcasecmp (key_theme, "Emacs"))
|
||||
{
|
||||
close_mask = GDK_SHIFT_MASK | GDK_CONTROL_MASK;
|
||||
mymenu[SEARCH_OFFSET].key = 0;
|
||||
|
||||
Reference in New Issue
Block a user