[gtk+/wip/csoriano/bookmarks: 3/3] gtkdnd: draw highlight before default draw handler



commit c60726fe279250c30e23f180b1b2d7cbff87cf22
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue May 26 16:51:39 2015 +0200

    gtkdnd: draw highlight before default draw handler
    
    Seems connecting after the default draw handler makes the widget
    not sending the draw signal.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749910

 gtk/gtkdnd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 59b883d..fed022c 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1191,9 +1191,9 @@ gtk_drag_highlight (GtkWidget  *widget)
 {
   g_return_if_fail (GTK_IS_WIDGET (widget));
 
-  g_signal_connect_after (widget, "draw",
-                          G_CALLBACK (gtk_drag_highlight_draw),
-                          NULL);
+  g_signal_connect (widget, "draw",
+                    G_CALLBACK (gtk_drag_highlight_draw),
+                    NULL);
 
   gtk_widget_queue_draw (widget);
 }


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