[gtk+] range: No need to update mouse location when starting a drag



commit 4b92654b292c09c8dd2b0b71b24dbd28cd446c80
Author: Benjamin Otte <otte redhat com>
Date:   Sat Nov 29 03:18:50 2014 +0100

    range: No need to update mouse location when starting a drag
    
    The mouse position doesn't change here. Plus, all callers have just
    updated it anyway.

 gtk/gtkrange.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 3b6def5..4420140 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2253,9 +2253,6 @@ range_grab_add (GtkRange      *range,
    */
   priv->grab_location = location;
 
-  if (gtk_range_update_mouse_location (range))
-    gtk_widget_queue_draw (GTK_WIDGET (range));
-
   gtk_style_context_add_class (context, "dragging");
 }
 


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