Commit b602dc2e authored by Cosimo Cecchi's avatar Cosimo Cecchi

menuitem: trivial cleanup

parent 871a8c0e
...@@ -1013,9 +1013,9 @@ gtk_menu_item_init (GtkMenuItem *menu_item) ...@@ -1013,9 +1013,9 @@ gtk_menu_item_init (GtkMenuItem *menu_item)
priv->action = NULL; priv->action = NULL;
priv->use_action_appearance = TRUE; priv->use_action_appearance = TRUE;
menu_item->priv->submenu = NULL; priv->submenu = NULL;
menu_item->priv->toggle_size = 0; priv->toggle_size = 0;
menu_item->priv->accelerator_width = 0; priv->accelerator_width = 0;
if (gtk_widget_get_direction (GTK_WIDGET (menu_item)) == GTK_TEXT_DIR_RTL) if (gtk_widget_get_direction (GTK_WIDGET (menu_item)) == GTK_TEXT_DIR_RTL)
priv->submenu_direction = GTK_DIRECTION_LEFT; priv->submenu_direction = GTK_DIRECTION_LEFT;
else else
...@@ -1180,7 +1180,7 @@ gtk_menu_item_get_property (GObject *object, ...@@ -1180,7 +1180,7 @@ gtk_menu_item_get_property (GObject *object,
switch (prop_id) switch (prop_id)
{ {
case PROP_RIGHT_JUSTIFIED: case PROP_RIGHT_JUSTIFIED:
g_value_set_boolean (value, menu_item->priv->right_justify); g_value_set_boolean (value, priv->right_justify);
break; break;
case PROP_SUBMENU: case PROP_SUBMENU:
g_value_set_object (value, gtk_menu_item_get_submenu (menu_item)); g_value_set_object (value, gtk_menu_item_get_submenu (menu_item));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment