summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--ChangeLog.pre-2-25
-rw-r--r--ChangeLog.pre-2-45
-rw-r--r--ChangeLog.pre-2-65
-rw-r--r--ChangeLog.pre-2-85
-rw-r--r--gtk/gtkimmodule.c10
7 files changed, 40 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 35ff6944ab..4e862a8b4b 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index 6d5a9176c4..90193cfab4 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -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);
}
}