summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-25 23:18:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-26 08:02:25 -0500
commitc5c75f338e818a1b28f4558504559a07a5963349 (patch)
tree2b03b8f876015dbe568a31c2565736876c79acd0 /gtk/gtkcontainer.c
parent572266429f3fa065edb044fd504902632540234e (diff)
downloadgtk+-c5c75f338e818a1b28f4558504559a07a5963349.tar.gz
container: Remove the ::set-focus-child signal
Nobody is connecting to this signal. And its better that way.
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 4c6219ec8a..9fb6d81d9e 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -128,7 +128,6 @@ struct _GtkContainerPrivate
enum {
ADD,
REMOVE,
- SET_FOCUS_CHILD,
LAST_SIGNAL
};
@@ -304,15 +303,6 @@ gtk_container_class_init (GtkContainerClass *class)
NULL,
G_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
- container_signals[SET_FOCUS_CHILD] =
- g_signal_new (I_("set-focus-child"),
- G_OBJECT_CLASS_TYPE (gobject_class),
- G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (GtkContainerClass, set_focus_child),
- NULL, NULL,
- NULL,
- G_TYPE_NONE, 1,
- GTK_TYPE_WIDGET);
if (GtkContainer_private_offset != 0)
g_type_class_adjust_private_offset (class, &GtkContainer_private_offset);
@@ -1569,7 +1559,7 @@ gtk_container_set_focus_child (GtkContainer *container,
if (child)
g_return_if_fail (GTK_IS_WIDGET (child));
- g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, child);
+ GTK_CONTAINER_GET_CLASS (container)->set_focus_child (container, child);
}
/**