Blame SOURCES/0013-avahi-ui-Remove-deprecated-usage-of-gtk_widget_push_.patch

1a7c47
From 305e5c6faab36e01f2ac7a26a9b1690a60e54275 Mon Sep 17 00:00:00 2001
1a7c47
From: Trent Lloyd <trent@lloyd.id.au>
1a7c47
Date: Thu, 16 Jan 2014 13:16:22 +0800
1a7c47
Subject: [PATCH] avahi-ui: Remove deprecated usage of
1a7c47
 gtk_widget_push_composite_child/gtk_widget_pop_composite_child
1a7c47
1a7c47
The composite API is deprecated in GTK3, it doesn't really do anything other than
1a7c47
hide the container objects from gtk_container_foreach which no one is really doing
1a7c47
with avahi-ui that I can find anyway, so we remove it entirely rather than make it
1a7c47
conditional.
1a7c47
1a7c47
Ideally avahi-ui should be converted to GtkBuilder where there is a new composite API
1a7c47
---
1a7c47
 avahi-ui/avahi-ui.c | 4 ----
1a7c47
 1 file changed, 4 deletions(-)
1a7c47
1a7c47
diff --git a/avahi-ui/avahi-ui.c b/avahi-ui/avahi-ui.c
1a7c47
index 8f90b27..e3d38f5 100644
1a7c47
--- a/avahi-ui/avahi-ui.c
1a7c47
+++ b/avahi-ui/avahi-ui.c
1a7c47
@@ -1121,8 +1121,6 @@ static void aui_service_dialog_init(AuiServiceDialog *d) {
1a7c47
     p->service_list_store = p->domain_list_store = NULL;
1a7c47
     p->service_type_names = NULL;
1a7c47
 
1a7c47
-    gtk_widget_push_composite_child();
1a7c47
-
1a7c47
     gtk_container_set_border_width(GTK_CONTAINER(d), 5);
1a7c47
 
1a7c47
 #if GTK_CHECK_VERSION(3,0,0)
1a7c47
@@ -1198,8 +1196,6 @@ static void aui_service_dialog_init(AuiServiceDialog *d) {
1a7c47
 
1a7c47
     gtk_widget_show_all(vbox);
1a7c47
 
1a7c47
-    gtk_widget_pop_composite_child();
1a7c47
-
1a7c47
     p->glib_poll = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT);
1a7c47
 
1a7c47
     p->service_pulse_timeout = g_timeout_add(100, service_pulse_callback, d);
1a7c47
-- 
1a7c47
2.7.4
1a7c47