[gtk/matthiasc/for-master: 8/8] Remove a stray g_object_unref



commit cf873f3426635aaa63a37c4727778dfb2401828f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 27 14:07:12 2020 -0500

    Remove a stray g_object_unref
    
    Events are no longer objects, so this does not do
    any good. Use gdk_event_unref instead.

 gtk/gtkwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f9e06f2356..65ced5f895 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2105,7 +2105,7 @@ _gtk_widget_emulate_press (GtkWidget      *widget,
 
   /* Perform propagation state starting from the next child in the chain */
   gtk_propagate_event_internal (event_widget, press, next_child);
-  g_object_unref (press);
+  gdk_event_unref (press);
 }
 
 static GdkEvent *


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