diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-20 09:31:35 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-20 09:31:35 +0100 |
commit | 7779705809b61a180aeb2371afcf8d0cba9ba0e3 (patch) | |
tree | 9d0d1c191f55ca46d54f6cc0a021556f2b1aad06 /trashapplet/src/trash-empty.c | |
parent | 3da42cef82ee714a2271849275dfeea3b03ed508 (diff) | |
download | mate-applets-7779705809b61a180aeb2371afcf8d0cba9ba0e3.tar.bz2 mate-applets-7779705809b61a180aeb2371afcf8d0cba9ba0e3.tar.xz |
trashapplet: Add GTK3 support
Diffstat (limited to 'trashapplet/src/trash-empty.c')
-rw-r--r-- | trashapplet/src/trash-empty.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/trashapplet/src/trash-empty.c b/trashapplet/src/trash-empty.c index 16b39191..18a1260a 100644 --- a/trashapplet/src/trash-empty.c +++ b/trashapplet/src/trash-empty.c @@ -125,7 +125,11 @@ trash_empty_update_dialog (gpointer user_data) static gboolean trash_empty_done (gpointer user_data) { +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_destroy (GTK_WIDGET (trash_empty_dialog)); +#else gtk_object_destroy (GTK_OBJECT (trash_empty_dialog)); +#endif g_assert (trash_empty_dialog == NULL); @@ -260,7 +264,11 @@ trash_empty_start (GtkWidget *parent) g_critical ("failed to parse trash-empty dialog markup"); if (trash_empty_dialog) +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_destroy (GTK_WIDGET (trash_empty_dialog)); +#else gtk_object_destroy (GTK_OBJECT (trash_empty_dialog)); +#endif g_object_unref (builder); return; @@ -302,7 +310,11 @@ trash_empty_confirmation_response (GtkDialog *dialog, if (response_id == GTK_RESPONSE_YES) trash_empty_start (GTK_WIDGET (dialog)); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_destroy (GTK_WIDGET (dialog)); +#else gtk_object_destroy (GTK_OBJECT (dialog)); +#endif g_assert (trash_empty_confirm_dialog == NULL); } |