Revision: 6782
Author: nogu.dev
Date: Sat Sep 18 03:45:25 2010
Log: * Merge r6779 from trunk.
http://code.google.com/p/uim/source/detail?r=6782

Modified:
 /branches/1.6/helper/pref-gtk-custom-widgets.c

=======================================
--- /branches/1.6/helper/pref-gtk-custom-widgets.c      Thu Jul 15 19:00:23 2010
+++ /branches/1.6/helper/pref-gtk-custom-widgets.c      Sat Sep 18 03:45:25 2010
@@ -1725,7 +1725,6 @@
   struct uim_custom *custom;
   struct uim_custom_key *key;
   gint i;
-  GtkIMContext *im_context;
   gchar title[256];

   g_return_if_fail(GTK_IS_ENTRY(key_entry));
@@ -1826,12 +1825,6 @@
   gtk_widget_show(label);

   entry = gtk_entry_new();
-
-  /* XXX hack alert!  This modifies private part of gtk_entry */
-  im_context = gtk_im_context_simple_new();
-  g_object_unref(GTK_ENTRY(entry)->im_context);
-  GTK_ENTRY(entry)->im_context = im_context;
-
   gtk_entry_set_editable(GTK_ENTRY(entry), FALSE);
   key_pref_win.keycode_entry = entry;
   gtk_widget_set_size_request(GTK_WIDGET(entry), 100, -1);

Reply via email to