[gtk/kill-containers: 48/55] assistant: Remove code that doesn't work anymore
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-containers: 48/55] assistant: Remove code that doesn't work anymore
- Date: Tue, 12 May 2020 02:43:46 +0000 (UTC)
commit 6bc4446e3e1f492de8b90ad0c8bae8862cc19e69
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 8 15:58:57 2020 -0400
assistant: Remove code that doesn't work anymore
When GtkContainer goes away, we don't have
an "add" signal anymore.
gtk/gtkassistant.c | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 3f890c9552..2741c84f39 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -371,17 +371,6 @@ gtk_assistant_get_property (GObject *object,
}
}
-static void
-add_cb (GtkContainer *container,
- GtkWidget *widget,
- GtkAssistant *assistant)
-{
- if (assistant->use_header_bar)
- g_warning ("Content added to the action area of an assistant using header bars");
-
- gtk_widget_show (GTK_WIDGET (container));
-}
-
static void
apply_use_header_bar (GtkAssistant *assistant)
{
@@ -389,8 +378,6 @@ apply_use_header_bar (GtkAssistant *assistant)
gtk_widget_set_visible (assistant->headerbar, assistant->use_header_bar);
if (!assistant->use_header_bar)
gtk_window_set_titlebar (GTK_WINDOW (assistant), NULL);
- else
- g_signal_connect (assistant->action_area, "add", G_CALLBACK (add_cb), assistant);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]