[gtk+/wip/cosimoc/menuitem-gadget: 15/21] menuitem: trivial cleanup



commit 05c9035880c682581817d594880689ead3778f0c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Dec 18 10:10:28 2015 -0800

    menuitem: trivial cleanup

 gtk/gtkmenuitem.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index fb86a82..261bdce 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -1013,9 +1013,9 @@ gtk_menu_item_init (GtkMenuItem *menu_item)
   priv->action = NULL;
   priv->use_action_appearance = TRUE;
   
-  menu_item->priv->submenu = NULL;
-  menu_item->priv->toggle_size = 0;
-  menu_item->priv->accelerator_width = 0;
+  priv->submenu = NULL;
+  priv->toggle_size = 0;
+  priv->accelerator_width = 0;
   if (gtk_widget_get_direction (GTK_WIDGET (menu_item)) == GTK_TEXT_DIR_RTL)
     priv->submenu_direction = GTK_DIRECTION_LEFT;
   else
@@ -1180,7 +1180,7 @@ gtk_menu_item_get_property (GObject    *object,
   switch (prop_id)
     {
     case PROP_RIGHT_JUSTIFIED:
-      g_value_set_boolean (value, menu_item->priv->right_justify);
+      g_value_set_boolean (value, priv->right_justify);
       break;
     case PROP_SUBMENU:
       g_value_set_object (value, gtk_menu_item_get_submenu (menu_item));


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