[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 02/02: Remove grab-broken

noreply at xfce.org noreply at xfce.org
Thu Mar 19 02:12:31 CET 2015


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

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-pulseaudio-plugin.

commit 4fc9544f7310bdaa488dbfd3082cf3e4af8ddc21
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Thu Mar 19 01:12:22 2015 +0000

    Remove grab-broken
    
    Didn't seem to do anything and was producing a lot of warnings
---
 panel-plugin/scalemenuitem.c |   21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/panel-plugin/scalemenuitem.c b/panel-plugin/scalemenuitem.c
index 678c0bb..13707ae 100644
--- a/panel-plugin/scalemenuitem.c
+++ b/panel-plugin/scalemenuitem.c
@@ -44,8 +44,6 @@ static gboolean scale_menu_item_button_release_event    (GtkWidget          *men
                                                          GdkEventButton     *event);
 static gboolean scale_menu_item_motion_notify_event     (GtkWidget          *menuitem,
                                                          GdkEventMotion     *event);
-static gboolean scale_menu_item_grab_broken             (GtkWidget          *menuitem,
-                                                         GdkEventGrabBroken *event);
 static void     scale_menu_item_parent_set              (GtkWidget          *item,
                                                          GtkWidget          *previous_parent);
 static void     update_packing                          (ScaleMenuItem  *    self);
@@ -106,7 +104,6 @@ scale_menu_item_class_init (ScaleMenuItemClass *item_class)
   widget_class->button_press_event   = scale_menu_item_button_press_event;
   widget_class->button_release_event = scale_menu_item_button_release_event;
   widget_class->motion_notify_event  = scale_menu_item_motion_notify_event;
-  widget_class->grab_broken_event    = scale_menu_item_grab_broken;
   widget_class->parent_set           = scale_menu_item_parent_set;
 
 
@@ -305,7 +302,6 @@ scale_menu_item_button_release_event (GtkWidget      *menuitem,
   if (priv->grabbed)
     {
       priv->grabbed = FALSE;
-      scale_menu_item_grab_broken (menuitem, NULL);
       g_signal_emit (menuitem, signals[SLIDER_RELEASED], 0);
     }
 
@@ -341,23 +337,6 @@ scale_menu_item_motion_notify_event (GtkWidget      *menuitem,
   return TRUE;
 }
 
-static gboolean
-scale_menu_item_grab_broken (GtkWidget          *menuitem,
-                             GdkEventGrabBroken *event)
-{
-  ScaleMenuItemPrivate *priv;
-
-  g_return_val_if_fail (IS_SCALE_MENU_ITEM (menuitem), FALSE);
-
-  priv = GET_PRIVATE (menuitem);
-
-  TRACE("entering");
-
-  GTK_WIDGET_GET_CLASS (priv->scale)->grab_broken_event (priv->scale, event);
-
-  return TRUE;
-}
-
 static void
 menu_hidden (GtkWidget     *menu,
              ScaleMenuItem *scale)

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


More information about the Xfce4-commits mailing list