[gtk+/wip/csoriano/gtkpathbar_rework: 88/93] gtkpathbar: remove unmap handling of sliders



commit ed012d0b699a1260ddbd925b514852e8c9a8ab23
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Mar 3 15:09:49 2015 +0100

    gtkpathbar: remove unmap handling of sliders
    
    Seems it's not necessary at all and NautilusPathbar is not
    managing it either.

 gtk/gtkpathbar.c     |   11 -----------
 gtk/ui/gtkpathbar.ui |    2 --
 2 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index a905b97..a890d81 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -151,16 +151,6 @@ static void gtk_path_bar_update_button_appearance (GtkPathBar       *path_bar,
                                                   gboolean          current_dir);
 
 static void
-on_slider_unmap (GtkWidget  *widget,
-                GtkPathBar *path_bar)
-{
-  if (path_bar->priv->timer &&
-      ((widget == path_bar->priv->up_slider_button && path_bar->priv->scrolling_up) ||
-       (widget == path_bar->priv->down_slider_button && path_bar->priv->scrolling_down)))
-    gtk_path_bar_stop_scrolling (path_bar);
-}
-
-static void
 gtk_path_bar_init (GtkPathBar *path_bar)
 {
   GtkStyleContext *context;
@@ -253,7 +243,6 @@ gtk_path_bar_class_init (GtkPathBarClass *path_bar_class)
   gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_slider_button_release);
   gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_scroll_up);
   gtk_widget_class_bind_template_callback (widget_class, gtk_path_bar_scroll_down);
-  gtk_widget_class_bind_template_callback (widget_class, on_slider_unmap);
 }
 
 
diff --git a/gtk/ui/gtkpathbar.ui b/gtk/ui/gtkpathbar.ui
index f2f624f..8dca38c 100644
--- a/gtk/ui/gtkpathbar.ui
+++ b/gtk/ui/gtkpathbar.ui
@@ -13,7 +13,6 @@
     </child>
     <signal name="button-press-event" handler="gtk_path_bar_slider_button_press" swapped="no"/>
     <signal name="button-release-event" handler="gtk_path_bar_slider_button_release" swapped="no"/>
-    <signal name="unmap" handler="on_slider_unmap" swapped="no"/>
     <child>
       <object class="GtkImage">
         <property name="visible">True</property>
@@ -37,7 +36,6 @@
     </child>
     <signal name="button-press-event" handler="gtk_path_bar_slider_button_press" swapped="no"/>
     <signal name="button-release-event" handler="gtk_path_bar_slider_button_release" swapped="no"/>
-    <signal name="unmap" handler="on_slider_unmap" swapped="no"/>
     <child>
       <object class="GtkImage">
         <property name="visible">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]