[gtk+] menu button: Minor cleanup



commit 03417cf8646aebf85301f052587329afae2a8725
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 22 11:44:37 2015 -0400

    menu button: Minor cleanup
    
    Preserve the symmetry in set_align_widget_pointer.

 gtk/gtkmenubutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 594d119..6ea53b2 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -890,7 +890,7 @@ set_align_widget_pointer (GtkMenuButton *menu_button,
 
   priv->align_widget = align_widget;
 
-  if (align_widget)
+  if (priv->align_widget)
     g_object_add_weak_pointer (G_OBJECT (priv->align_widget), (gpointer *) &priv->align_widget);
 }
 


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