diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-07 17:46:12 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-07 17:50:47 +0800 |
commit | 290a4853102e645d76318e8e09ef45420a6559bc (patch) | |
tree | f35da604f566a7e148709707c4a3b863e49066b5 /libempathy-gtk/empathy-contact-dialogs.c | |
parent | 0b6ef5b5eac2633e4c7660c58b2bb6f412dd1a2a (diff) | |
download | gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar.gz gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar.bz2 gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar.lz gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar.xz gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.tar.zst gsoc2013-empathy-290a4853102e645d76318e8e09ef45420a6559bc.zip |
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.
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index 003710b03..6da181087 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -178,7 +178,7 @@ empathy_contact_information_dialog_show (EmpathyContact *contact, /* Create dialog */ dialog = gtk_dialog_new (); - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); + empathy_dialog_remove_separator (GTK_DIALOG (dialog)); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_window_set_title (GTK_WINDOW (dialog), empathy_contact_get_alias (contact)); @@ -238,7 +238,7 @@ empathy_contact_edit_dialog_show (EmpathyContact *contact, /* Create dialog */ dialog = gtk_dialog_new (); - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); + empathy_dialog_remove_separator (GTK_DIALOG (dialog)); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_window_set_title (GTK_WINDOW (dialog), _("Edit Contact Information")); @@ -290,7 +290,7 @@ empathy_contact_personal_dialog_show (GtkWindow *parent) /* Create dialog */ personal_dialog = gtk_dialog_new (); - gtk_dialog_set_has_separator (GTK_DIALOG (personal_dialog), FALSE); + empathy_dialog_remove_separator (GTK_DIALOG (personal_dialog)); gtk_window_set_resizable (GTK_WINDOW (personal_dialog), FALSE); gtk_window_set_title (GTK_WINDOW (personal_dialog), _("Personal Information")); @@ -396,7 +396,7 @@ empathy_new_contact_dialog_show_with_contact (GtkWindow *parent, /* Create dialog */ dialog = gtk_dialog_new (); - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); + empathy_dialog_remove_separator (GTK_DIALOG (dialog)); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_window_set_title (GTK_WINDOW (dialog), _("New Contact")); |