[Xfce4-commits] [panel-plugins/xfce4-fsguard-plugin] 04/15: GtkTooltips have been deprecated since Gtk 2.12... migrate to GtkTooltip

noreply at xfce.org noreply at xfce.org
Thu Apr 28 12:07:47 CEST 2016


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-fsguard-plugin.

commit 800b8bd5612ffab4e35791fe8fe45fbd9bc4ada1
Author: Landry Breuil <landry at xfce.org>
Date:   Thu Apr 28 11:57:02 2016 +0200

    GtkTooltips have been deprecated since Gtk 2.12... migrate to GtkTooltip
---
 panel-plugin/fsguard.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index 1b94f13..0aabb6d 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -92,8 +92,6 @@ typedef struct
     GtkWidget          *cb_hide_button;
 } FsGuard;
 
-static GtkTooltips *tooltips = NULL;
-
 // }}}
 
 // all functions {{{
@@ -301,7 +299,7 @@ fsguard_check_fs (FsGuard *fsguard)
         fsguard_refresh_monitor (fsguard);
     }
 
-    gtk_tooltips_set_tip (tooltips, fsguard->ebox, msg, NULL);
+    gtk_widget_set_tooltip_text(fsguard->ebox, msg);
     fsguard_set_icon (fsguard, icon_id);
 
     if (err != -1 && !fsguard->seen && icon_id == ICON_URGENT) {
@@ -395,8 +393,6 @@ fsguard_new (XfcePanelPlugin *plugin)
 
     fsguard_read_config (fsguard);
 
-    tooltips = gtk_tooltips_new ();
-
     fsguard->ebox = gtk_event_box_new();
     gtk_event_box_set_visible_window(GTK_EVENT_BOX(fsguard->ebox), FALSE);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list