[Xfce4-commits] [apps/gigolo] 05/26: Ignore GtkStatusIcon deprecations since Xfce still uses these
noreply at xfce.org
noreply at xfce.org
Thu Oct 25 08:03:57 CEST 2018
This is an automated email from the git hooks/post-receive script.
l a n d r y 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 apps/gigolo.
commit daa49992f31ecdd5d97a97e5a7edc2859a1bc132
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Tue Oct 16 20:11:12 2018 -0400
Ignore GtkStatusIcon deprecations since Xfce still uses these
---
TODO | 5 -----
src/window.c | 4 ++++
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/TODO b/TODO
index f50c7bd..014a5d8 100644
--- a/TODO
+++ b/TODO
@@ -21,11 +21,6 @@ bookmarkdialog.c:77:2: warning: ‘g_type_class_add_private’ is deprecated
bookmarkeditdialog.c:328:2: warning: ‘g_type_class_add_private’ is deprecated
browsenetworkpanel.c:102:2: warning: ‘g_type_class_add_private’ is deprecated
-=== GtkStatusIcon deprecations ===
-window.c:1041:2: warning: ‘gtk_status_icon_set_visible’ is deprecated
-window.c:1623:2: warning: ‘gtk_status_icon_new_from_icon_name’ is deprecated
-window.c:1624:2: warning: ‘gtk_status_icon_set_tooltip_text’ is deprecated
-
=== GtkUiManager deprecations ===
window.c:1333:2: warning: ‘gtk_ui_manager_insert_action_group’ is deprecated
window.c:1334:2: warning: ‘gtk_ui_manager_get_accel_group’ is deprecated
diff --git a/src/window.c b/src/window.c
index d28cf73..49438be 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1038,7 +1038,9 @@ static void gigolo_window_show_systray_icon(GigoloWindow *window, gboolean show)
{
GigoloWindowPrivate *priv = GIGOLO_WINDOW_GET_PRIVATE(window);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* Gtk 3.14 */
gtk_status_icon_set_visible(priv->systray_icon, show);
+ G_GNUC_END_IGNORE_DEPRECATIONS
}
@@ -1620,8 +1622,10 @@ static void gigolo_window_init(GigoloWindow *window)
gtk_widget_show_all(priv->swin_treeview);
/* Status icon */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* Gtk 3.14 */
priv->systray_icon = gtk_status_icon_new_from_icon_name(gigolo_get_application_icon_name());
gtk_status_icon_set_tooltip_text(priv->systray_icon, _("Gigolo"));
+ G_GNUC_END_IGNORE_DEPRECATIONS
g_signal_connect(priv->systray_icon, "activate", G_CALLBACK(systray_icon_activate_cb), window);
g_signal_connect(priv->systray_icon, "popup-menu", G_CALLBACK(systray_icon_popup_menu_cb), window);
g_signal_connect(priv->systray_icon, "notify", G_CALLBACK(gigolo_window_systray_notify_cb), window);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list