Revision: 6779
Author: nogu.dev
Date: Sun Sep 12 02:35:19 2010
Log: * helper/pref-gtk-custom-widgets.c
- (choose_key_clicked_cb): Prevent uim-pref-gtk from segfaulting
when right-clicking on GtkEntry widget.
We can use no input method on this widget
because this widget isn't editable.
http://code.google.com/p/uim/source/detail?r=6779
Modified:
/trunk/helper/pref-gtk-custom-widgets.c
=======================================
--- /trunk/helper/pref-gtk-custom-widgets.c Sat Sep 11 17:43:43 2010
+++ /trunk/helper/pref-gtk-custom-widgets.c Sun Sep 12 02:35:19 2010
@@ -1730,7 +1730,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));
@@ -1832,13 +1831,6 @@
gtk_widget_show(label);
entry = gtk_entry_new();
-
- /* XXX hack alert! This modifies private part of gtk_entry */
- /* FIXME: Can't compile with GSEAL_ENABLE */
- im_context = gtk_im_context_simple_new();
- g_object_unref(GTK_ENTRY(entry)->im_context);
- GTK_ENTRY(entry)->im_context = im_context;
-
gtk_editable_set_editable(GTK_EDITABLE(entry), FALSE);
key_pref_win.keycode_entry = entry;
gtk_widget_set_size_request(GTK_WIDGET(entry), 100, -1);