summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-09-16 16:19:35 -0400
committerLennart Poettering <lennart@poettering.net>2010-09-19 23:30:51 +0200
commitfc2ac4ab73a27341ffd7eecc06f836dc9d1bbb85 (patch)
tree132a8e8154bb1efe0880fb4b24e579c1b0075d3e
parent7b124f6ae362a575460d2374dca39ebdce07c714 (diff)
gtk: avahi build fix
Hey, avahi-0.26.7 braucht einen kleinen fix, um mit gtk+ 2.21.8/2.90.7 zu bauen. See attachment.
-rw-r--r--avahi-ui/avahi-ui.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/avahi-ui/avahi-ui.c b/avahi-ui/avahi-ui.c
index 62ccd18..2569ba0 100644
--- a/avahi-ui/avahi-ui.c
+++ b/avahi-ui/avahi-ui.c
@@ -254,11 +254,13 @@ GtkWidget *aui_service_dialog_new_valist(
const gchar *button_text;
gint dr;
- GtkWidget *w = GTK_WIDGET(g_object_new(
+ GtkWidget *w = (GtkWidget*)g_object_new(
AUI_TYPE_SERVICE_DIALOG,
+#if !GTK_CHECK_VERSION (2,21,8)
"has-separator", FALSE,
+#endif
"title", title,
- NULL));
+ NULL);
if (parent)
gtk_window_set_transient_for(GTK_WINDOW(w), parent);
@@ -985,7 +987,9 @@ static void domain_button_clicked(GtkButton *button G_GNUC_UNUSED, gpointer user
p->domain_dialog = gtk_dialog_new();
gtk_container_set_border_width(GTK_CONTAINER(p->domain_dialog), 5);
gtk_window_set_title(GTK_WINDOW(p->domain_dialog), _("Change domain"));
+#if !GTK_CHECK_VERSION(2,21,8)
gtk_dialog_set_has_separator(GTK_DIALOG(p->domain_dialog), FALSE);
+#endif
vbox = gtk_vbox_new(FALSE, 8);
gtk_container_set_border_width(GTK_CONTAINER(vbox), 8);