diff options
author | Jasmine Hassan <[email protected]> | 2012-12-14 17:30:11 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-12-14 17:30:11 +0200 |
commit | 252f06b61d3c34e59c13a3eba80d4077e18b542d (patch) | |
tree | 1716868c2cf188de4f14a7fed2c21aa7b98dcf98 | |
parent | c12ffd128cbe0d90443edf85025a421ab2c027fb (diff) | |
download | mate-settings-daemon-252f06b61d3c34e59c13a3eba80d4077e18b542d.tar.bz2 mate-settings-daemon-252f06b61d3c34e59c13a3eba80d4077e18b542d.tar.xz |
[housekeeping] Remove GtkObject & gtk_dialog_set_has_separator deprecations
gtk_dialog_set_has_separator deprecated in GTK+ 2.21.8
simple gtk_object -> gtk_widget switch for GTK3 forward compat.
-rw-r--r-- | plugins/housekeeping/msd-disk-space.c | 2 | ||||
-rw-r--r-- | plugins/housekeeping/msd-ldsm-dialog.c | 3 | ||||
-rw-r--r-- | plugins/housekeeping/msd-ldsm-trash-empty.c | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c index 3065b39..59c7527 100644 --- a/plugins/housekeeping/msd-disk-space.c +++ b/plugins/housekeeping/msd-disk-space.c @@ -207,7 +207,7 @@ ldsm_notify_for_mount (LdsmMountInfo *mount, g_object_ref (G_OBJECT (dialog)); response = gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_object_destroy (GTK_OBJECT (dialog)); + gtk_widget_destroy (GTK_WIDGET (dialog)); dialog = NULL; switch (response) { diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c index 7615206..d961d8a 100644 --- a/plugins/housekeeping/msd-ldsm-dialog.c +++ b/plugins/housekeeping/msd-ldsm-dialog.c @@ -213,9 +213,6 @@ msd_ldsm_dialog_init (MsdLdsmDialog *dialog) gtk_window_set_focus_on_map (GTK_WINDOW (dialog), FALSE); gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); - /* We don't want a separator - they're really ugly */ - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); - /* Create the image */ image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0); diff --git a/plugins/housekeeping/msd-ldsm-trash-empty.c b/plugins/housekeeping/msd-ldsm-trash-empty.c index af01aa1..a12f8ce 100644 --- a/plugins/housekeeping/msd-ldsm-trash-empty.c +++ b/plugins/housekeeping/msd-ldsm-trash-empty.c @@ -318,7 +318,7 @@ trash_empty_confirmation_response (GtkDialog *dialog, if (response_id == GTK_RESPONSE_YES) trash_empty_start (); - gtk_object_destroy (GTK_OBJECT (dialog)); + gtk_widget_destroy (GTK_WIDGET (dialog)); trash_empty_confirm_dialog = NULL; } |