diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-08-02 17:56:31 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-08-02 17:57:11 +0200 |
commit | e63bfabb0783954bcd11bd71ec62d0982ce8bcf4 (patch) | |
tree | ed19a8acfafdde37225589145257009001878f8c /gtk/gtkinfobar.c | |
parent | 1c63d295ec25cbb768fe58a7db43aa44c38c7a6e (diff) | |
download | gtk+-e63bfabb0783954bcd11bd71ec62d0982ce8bcf4.tar.gz |
Revert "Add a revealer to GtkInfoBar"
This reverts commit 1198ffb0bc195c6044d4d0efd864ccf093d637c7.
This change needs more work, to avoid breaking existing
ui files.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 396a087d19..776adc0930 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -41,7 +41,6 @@ #include "gtkenums.h" #include "gtkbindings.h" #include "gtkdialog.h" -#include "gtkrevealer.h" #include "gtkintl.h" #include "gtkprivate.h" #include "gtkorientable.h" @@ -128,7 +127,6 @@ struct _GtkInfoBarPrivate GtkWidget *content_area; GtkWidget *action_area; GtkWidget *close_button; - GtkWidget *revealer; gboolean show_close_button; GtkMessageType message_type; @@ -380,36 +378,6 @@ gtk_info_bar_draw (GtkWidget *widget, } static void -gtk_info_bar_show (GtkWidget *widget) -{ - GtkInfoBarPrivate *priv = GTK_INFO_BAR (widget)->priv; - - GTK_WIDGET_CLASS (gtk_info_bar_parent_class)->show (widget); - - gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), TRUE); -} - -static void -child_revealed (GObject *object, GParamSpec *pspec, gpointer data) -{ - GtkWidget *widget = data; - - GTK_WIDGET_CLASS (gtk_info_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_info_bar_hide (GtkWidget *widget) -{ - GtkInfoBarPrivate *priv = GTK_INFO_BAR (widget)->priv; - - gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE); - g_signal_connect_object (priv->revealer, "notify::child-revealed", - G_CALLBACK (child_revealed), widget, 0); -} - -static void gtk_info_bar_class_init (GtkInfoBarClass *klass) { GtkWidgetClass *widget_class; @@ -426,8 +394,6 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) widget_class->get_preferred_width = gtk_info_bar_get_preferred_width; widget_class->get_preferred_height = gtk_info_bar_get_preferred_height; widget_class->draw = gtk_info_bar_draw; - widget_class->show = gtk_info_bar_show; - widget_class->hide = gtk_info_bar_hide; klass->close = gtk_info_bar_close; @@ -583,7 +549,6 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, content_area); gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, action_area); gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, close_button); - gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, revealer); } static void |