mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Sort the list of Input Modules by name, keeping Default at top.
2002-11-18 Abigail Brady <morwen@evilmagic.org> * gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input Modules by name, keeping Default at top.
This commit is contained in:
parent
a0fdf99106
commit
3e576ed832
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-11-18 Abigail Brady <morwen@evilmagic.org>
|
||||
|
||||
* gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input
|
||||
Modules by name, keeping Default at top.
|
||||
|
||||
Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED
|
||||
|
@ -388,6 +388,13 @@ gtk_im_module_init ()
|
||||
g_free (filename);
|
||||
}
|
||||
|
||||
static gint
|
||||
compare_gtkimcontextinfo_name(const GtkIMContextInfo **a,
|
||||
const GtkIMContextInfo **b)
|
||||
{
|
||||
return g_utf8_collate ((*a)->context_name, (*b)->context_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* _gtk_im_module_list:
|
||||
* @contexts: location to store an array of pointers to #GtkIMContextInfo
|
||||
@ -437,6 +444,9 @@ _gtk_im_module_list (const GtkIMContextInfo ***contexts,
|
||||
|
||||
tmp_list = tmp_list->next;
|
||||
}
|
||||
|
||||
/* fisrt element (Default) should always be at top */
|
||||
qsort ((*contexts)+1, n-1, sizeof (GtkIMContextInfo *), (GCompareFunc)compare_gtkimcontextinfo_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user