aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-05-10 08:23:57 +0800
committerJavier Jardón <jjardon@gnome.org>2010-06-02 01:28:46 +0800
commit685e4e45b4d984d67f93a04701239baddb16ab0d (patch)
tree676a488c395a6771d92586f670cd44be655199c8 /src
parent817f2ca2ef0977908e5e7632d062abe9d7d8ad56 (diff)
downloadgsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar.gz
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar.bz2
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar.lz
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar.xz
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.tar.zst
gsoc2013-epiphany-685e4e45b4d984d67f93a04701239baddb16ab0d.zip
Do not access im_context GtkEntry element directly
Use gtk_entry_reset_im_context() instead. https://bugzilla.gnome.org/show_bug.cgi?id=595791
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 90af3b1fd..241b3785d 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -415,7 +415,11 @@ entry_key_press_cb (GtkEntry *entry,
event->keyval == GDK_ISO_Enter) &&
state == GDK_CONTROL_MASK)
{
+#if GTK_CHECK_VERSION (2,21,0)
+ gtk_entry_reset_im_context (entry);
+#else
gtk_im_context_reset (entry->im_context);
+#endif
g_signal_emit_by_name (entry, "activate");