]> git.0d.be Git - empathy.git/commitdiff
Don't use deprecated gtk_dialog_set_has_separator
authorDiego Escalante Urrelo <descalante@igalia.com>
Sun, 19 Sep 2010 23:08:00 +0000 (18:08 -0500)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 28 Sep 2010 08:26:00 +0000 (10:26 +0200)
This is deprecated in GTK+ 2.22

Bug #630107

libempathy-gtk/empathy-contact-dialogs.c
libempathy-gtk/empathy-contact-selector-dialog.c
libempathy-gtk/empathy-individual-dialogs.c
libempathy-gtk/empathy-individual-edit-dialog.c
libempathy-gtk/empathy-individual-information-dialog.c
libempathy-gtk/empathy-linking-dialog.c
libempathy-gtk/empathy-status-preset-dialog.c
libempathy-gtk/empathy-ui-utils.h
src/empathy-accounts-dialog.c
src/empathy-import-dialog.c
src/empathy-preferences.c

index 6da181087cdf81b8534a97431a3fca004827aaef..9189d41e6d8748619fb3f2663cbfa1f03fbb7ed2 100644 (file)
@@ -178,7 +178,6 @@ empathy_contact_information_dialog_show (EmpathyContact *contact,
 
        /* Create dialog */
        dialog = gtk_dialog_new ();
-       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 +237,6 @@ empathy_contact_edit_dialog_show (EmpathyContact *contact,
 
        /* Create dialog */
        dialog = gtk_dialog_new ();
-       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 +288,6 @@ empathy_contact_personal_dialog_show (GtkWindow *parent)
 
        /* Create dialog */
        personal_dialog = gtk_dialog_new ();
-       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 +393,6 @@ empathy_new_contact_dialog_show_with_contact (GtkWindow *parent,
 
        /* Create dialog */
        dialog = gtk_dialog_new ();
-       empathy_dialog_remove_separator (GTK_DIALOG (dialog));
        gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
        gtk_window_set_title (GTK_WINDOW (dialog), _("New Contact"));
 
index 7989e9cccdb22cb521a1d2e92c402a72f211d91d..62b9027465995cde0d946a7238ae92cf6d3ae6fc 100644 (file)
@@ -316,8 +316,6 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
     GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 
   /* Tweak the dialog */
-  empathy_dialog_remove_separator (GTK_DIALOG (dialog));
-
   gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
   gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT);
   gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
index 55682812efd588c3026cc34ca99df699cd81d524..edfb3fd48f222144c5fa4d052dbf26f31216d1c7 100644 (file)
@@ -107,7 +107,6 @@ empathy_new_individual_dialog_show_with_individual (GtkWindow *parent,
 
   /* Create dialog */
   dialog = gtk_dialog_new ();
-  empathy_dialog_remove_separator (GTK_DIALOG (dialog));
   gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
   gtk_window_set_title (GTK_WINDOW (dialog), _("New Contact"));
 
index 30ca1cc6658c871076396ef19ad48fa9f6c8ad38..b49e29f8b67cf26ad724d7e9b506ddde6fe8533e 100644 (file)
@@ -243,7 +243,6 @@ empathy_individual_edit_dialog_init (
   dialog->priv = priv;
   priv->individual = NULL;
 
-  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"));
 
index e6d4a90addb0788c3dcd12e0e9f2b5f3f2e52142..bb52e7d85045eda212fb473435041a315c6ab48b 100644 (file)
@@ -273,7 +273,6 @@ empathy_individual_information_dialog_init (
   dialog->priv = priv;
   priv->individual = NULL;
 
-  empathy_dialog_remove_separator (GTK_DIALOG (dialog));
   gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
 
   content_area = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog)));
index 2e62e5d1e9c3bbe9a35bdc0ae0291e7d8ccb2c0c..d0a0910538124e17bf84b48d7a1d771543b8e66b 100644 (file)
@@ -108,7 +108,6 @@ empathy_linking_dialog_init (EmpathyLinkingDialog *self)
   dialog = GTK_DIALOG (self);
 
   /* Set up dialog */
-  empathy_dialog_remove_separator (GTK_DIALOG (dialog));
   gtk_window_set_resizable (GTK_WINDOW (self), TRUE);
   /* Translators: this is the title of the linking dialogue (reached by
    * right-clicking on a contact and selecting "Linkā€¦"). "Link" in this title
index 2a5904bfb0d8ba187e306f8efae4bf8a664223a1..2d7ecfe6e8e9cc27f524b5900cc6abdbaf6fa531 100644 (file)
@@ -521,7 +521,6 @@ empathy_status_preset_dialog_init (EmpathyStatusPresetDialog *self)
 
        gtk_window_set_title (GTK_WINDOW (self),
                        _("Edit Custom Messages"));
-       empathy_dialog_remove_separator (GTK_DIALOG (self));
        gtk_dialog_add_button (GTK_DIALOG (self),
                        GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 
index 43da188dbe41f0808a00da0dbbd1dc92877fdae4..0b76d09a359495d869c8706f1974ff5464f3ff96 100644 (file)
@@ -129,22 +129,6 @@ void        empathy_window_iconify                      (GtkWindow        *windo
                                                         GtkStatusIcon    *status_icon);
 GtkWindow * empathy_get_toplevel_window                 (GtkWidget        *widget);
 
-/**
- * empathy_dialog_remove_separator:
- * @d: a #GtkDialog
- *
- * Replacement for gtk_dialog_set_has_separator(), which was removed for GTK+ 3.
- * This is a no-op for GTK+ 3, and expands to a call to
- * gtk_dialog_set_has_separator() with %FALSE for GTK+ 2.
- *
- * FIXME: Once we depend on GTK+ 3 unconditionally, this macro can be removed.
- */
-#ifndef HAVE_GTK3
-#define empathy_dialog_remove_separator(d) gtk_dialog_set_has_separator(d, FALSE);
-#else
-#define empathy_dialog_remove_separator(d)
-#endif
-
 /* URL */
 gchar *     empathy_make_absolute_url                   (const gchar      *url);
 
index 98301a485ef51c9e06656307b7fc58808650a656..35bea08eac3dd15ec84b6941e5ed4ef9eab815b0 100644 (file)
@@ -2161,11 +2161,6 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
 
   gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
 
-  /* FIXME: Remove this once we unconditionally depend on GTK+ 3 */
-#ifndef HAVE_GTK3
-  gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
-#endif
-
   /* add dialog buttons */
   gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area), GTK_BUTTONBOX_END);
 
index 1fc00c0e5a86c67b5d9fcef1f4ce350dd4045e45..da0c9d3ea91f895970c02c1a24ce653e84068132 100644 (file)
@@ -198,11 +198,6 @@ 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
index edc405974c924c4d1ca29a5fb567b9a84d540638..89133edb51e6d74a0ea1b07ee3fd9533c3a2f6ae 100644 (file)
@@ -885,11 +885,6 @@ empathy_preferences_init (EmpathyPreferences *preferences)
                                 GTK_WIN_POS_CENTER_ON_PARENT);
        gtk_window_set_icon_name (GTK_WINDOW (preferences), "gtk-preferences");
 
-       /* FIXME: Remove this once we unconditionally depend on GTK+ 3 */
-#ifndef HAVE_GTK3
-       gtk_dialog_set_has_separator (GTK_DIALOG (preferences), FALSE);
-#endif
-
        filename = empathy_file_lookup ("empathy-preferences.ui", "src");
        gui = empathy_builder_get_file (filename,
                "notebook", &priv->notebook,