[gtk/widget-class-actions] entry: Remove hacky code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/widget-class-actions] entry: Remove hacky code
- Date: Fri, 14 Jun 2019 15:04:15 +0000 (UTC)
commit 71b2ca40f151ddec196b8cace429eca3a55554c4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 14 15:02:01 2019 +0000
entry: Remove hacky code
We can leave it up to apps to not set less-than-useful
combinations, such as show-emoji-icon, but a no-emoji
input hint.
gtk/gtkentry.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 9a269106db..b340e9ee33 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3520,14 +3520,6 @@ set_show_emoji_icon (GtkEntry *entry,
g_object_notify_by_pspec (G_OBJECT (entry), entry_props[PROP_SHOW_EMOJI_ICON]);
gtk_widget_queue_resize (GTK_WIDGET (entry));
-
-#if 0
- actions = gtk_widget_get_action_group (priv->text, "context");
- action = g_action_map_lookup_action (G_ACTION_MAP (actions), "insert-emoji");
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
- priv->show_emoji_icon ||
- (gtk_entry_get_input_hints (entry) & GTK_INPUT_HINT_NO_EMOJI) == 0);
-#endif
}
GtkEventController *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]