[epiphany] Do not access im_context GtkEntry element directly
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Do not access im_context GtkEntry element directly
- Date: Tue, 1 Jun 2010 17:30:09 +0000 (UTC)
commit 685e4e45b4d984d67f93a04701239baddb16ab0d
Author: Javier Jardón <jjardon gnome org>
Date: Mon May 10 02:23:57 2010 +0200
Do not access im_context GtkEntry element directly
Use gtk_entry_reset_im_context() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=595791
src/bookmarks/ephy-bookmark-action.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 90af3b1..241b378 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]