From 290a4853102e645d76318e8e09ef45420a6559bc Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 7 Sep 2010 10:46:12 +0100 Subject: Remove calls to gtk_dialog_set_has_separator() if building against GTK+ 3 gtk_dialog_set_has_separator() has been removed in GTK+ 3, but can't be removed (or the property's default value changed) in GTK+ 2 without breaking API. This adds a wrapper macro to keep the calls when building against GTK+ 2, and remove them when building against GTK+ 3. --- src/empathy-import-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/empathy-import-dialog.c') diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index e8b1ed87c..1fc00c0e5 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -198,7 +198,11 @@ empathy_import_dialog_init (EmpathyImportDialog *self) gtk_container_set_border_width (GTK_CONTAINER (self), 5); gtk_window_set_title (GTK_WINDOW (self), _("Import Accounts")); gtk_window_set_modal (GTK_WINDOW (self), TRUE); + + /* FIXME: Remove this once we unconditionally depend on GTK+ 3 */ +#ifndef HAVE_GTK3 gtk_dialog_set_has_separator (GTK_DIALOG (self), FALSE); +#endif } static void -- cgit v1.2.3