[gtk+] actionbar: Remove show() and hide() implementations
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] actionbar: Remove show() and hide() implementations
- Date: Sun, 8 Jan 2017 14:03:41 +0000 (UTC)
commit 12c227475034cb41a2edb2feed6472aabaf662e7
Author: Timm Bäder <mail baedert org>
Date: Sun Jan 8 10:46:26 2017 +0100
actionbar: Remove show() and hide() implementations
They only show/hide the widget in a delayed fashion which doesn't
work, just like it doesn't work with infobars and popovers.
gtk/gtkactionbar.c | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index f2bc395..cb714ab 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -74,34 +74,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkActionBar, gtk_action_bar, GTK_TYPE_BIN,
gtk_action_bar_buildable_interface_init))
static void
-gtk_action_bar_show (GtkWidget *widget)
-{
- GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget));
-
- GTK_WIDGET_CLASS (gtk_action_bar_parent_class)->show (widget);
-
- gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), TRUE);
-}
-
-static void
-child_revealed (GObject *object, GParamSpec *pspec, GtkWidget *widget)
-{
- GTK_WIDGET_CLASS (gtk_action_bar_parent_class)->hide (widget);
- g_signal_handlers_disconnect_by_func (object, child_revealed, widget);
- g_object_notify (G_OBJECT (widget), "visible");
-}
-
-static void
-gtk_action_bar_hide (GtkWidget *widget)
-{
- GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget));
-
- g_signal_connect_object (priv->revealer, "notify::child-revealed",
- G_CALLBACK (child_revealed), widget, 0);
- gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE);
-}
-
-static void
gtk_action_bar_add (GtkContainer *container,
GtkWidget *child)
{
@@ -302,8 +274,6 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
object_class->finalize = gtk_action_bar_finalize;
- widget_class->show = gtk_action_bar_show;
- widget_class->hide = gtk_action_bar_hide;
widget_class->destroy = gtk_action_bar_destroy;
widget_class->snapshot = gtk_action_bar_snapshot;
widget_class->size_allocate = gtk_action_bar_size_allocate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]