[Xfce4-commits] [xfce/thunar] 02/07: Silence gtk_status_icon_* deprecations
noreply at xfce.org
noreply at xfce.org
Sat Jun 2 18:35:47 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 233cce8a078f3fa7e6b0d572bf8b1cfa0513963f
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Jun 2 12:49:51 2018 -0300
Silence gtk_status_icon_* deprecations
---
thunar/thunar-progress-dialog.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/thunar/thunar-progress-dialog.c b/thunar/thunar-progress-dialog.c
index 8ecee40..2b202d6 100644
--- a/thunar/thunar-progress-dialog.c
+++ b/thunar/thunar-progress-dialog.c
@@ -134,7 +134,9 @@ thunar_progress_dialog_finalize (GObject *object)
/* destroy the status icon */
if (dialog->status_icon != NULL)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_status_icon_set_visible (dialog->status_icon, FALSE);
+G_GNUC_END_IGNORE_DEPRECATIONS
g_object_unref (dialog->status_icon);
}
@@ -154,7 +156,10 @@ thunar_progress_dialog_shown (ThunarProgressDialog *dialog)
/* show the status icon */
if (dialog->status_icon == NULL)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
dialog->status_icon = gtk_status_icon_new_from_icon_name ("stock_folder-copy");
+G_GNUC_END_IGNORE_DEPRECATIONS
+
thunar_progress_dialog_update_status_icon (dialog);
g_signal_connect_swapped (dialog->status_icon, "button-press-event",
G_CALLBACK (thunar_progress_dialog_toggled),
@@ -304,7 +309,9 @@ thunar_progress_dialog_update_status_icon (ThunarProgressDialog *dialog)
n_views);
/* update the tooltip */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_status_icon_set_tooltip_text (dialog->status_icon, tooltip_text);
+G_GNUC_END_IGNORE_DEPRECATIONS
/* free the string */
g_free (tooltip_text);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list