[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 01/05: enter-notify-event callback should return a gboolean

noreply at xfce.org noreply at xfce.org
Tue Nov 1 15:28:40 CET 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-mpc-plugin.

commit cafad18c6adc8d16b46f27d5449aa4e8c1328e0f
Author: Landry Breuil <landry at xfce.org>
Date:   Tue Nov 1 15:23:43 2016 +0100

    enter-notify-event callback should return a gboolean
---
 panel-plugin/xfce4-mpc-plugin.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index 909ecbb..18b4e90 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -426,7 +426,7 @@ format_song_display(mpd_Song* song, GString *str, t_mpc* mpc)
    str_replace(str, "%track%", song->track);
 }
 
-static void
+static gboolean
 enter_cb(GtkWidget *widget, GdkEventCrossing* event, t_mpc* mpc)
 {
    mpd_Song *song;
@@ -439,7 +439,7 @@ enter_cb(GtkWidget *widget, GdkEventCrossing* event, t_mpc* mpc)
       if (!mpc_plugin_reconnect (mpc) || mpd_status_update (mpc->mo) != MPD_OK)
       {
          gtk_widget_set_tooltip_text (mpc->box, _(".... not connected ?"));
-         return;
+         return FALSE;
       }
    }
    str = g_string_new(mpc->tooltip_format);
@@ -477,6 +477,7 @@ enter_cb(GtkWidget *widget, GdkEventCrossing* event, t_mpc* mpc)
 
    gtk_widget_set_tooltip_text (mpc->box, str->str);
    g_string_free(str, TRUE);
+   return FALSE;
 }
 
 static void

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


More information about the Xfce4-commits mailing list