[gtk/matthiasc-for-master: 8/11] entry: Remove hacky code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc-for-master: 8/11] entry: Remove hacky code
- Date: Sun, 16 Jun 2019 01:42:50 +0000 (UTC)
commit 72d306c1323f3332b7c232ad6bc9a34d560aec02
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 14 16:43:58 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 878cfee2f3..b746537ba4 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3477,8 +3477,6 @@ set_show_emoji_icon (GtkEntry *entry,
gboolean value)
{
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
- GActionGroup *actions;
- GAction *action;
if (priv->show_emoji_icon == value)
return;
@@ -3520,12 +3518,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));
-
- 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);
}
GtkEventController *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]