diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-02-22 12:08:45 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-02-22 12:31:18 -0500 |
commit | 1de4c698cc1adce801e991755fce9af5c58aef13 (patch) | |
tree | 34fb0fdee3c2211e3ed1d2c0a5dced4a7d92c539 /gtk | |
parent | ac50e4e9dfc67126fee159257e9e8e2d8c9e6284 (diff) | |
download | gtk+-1de4c698cc1adce801e991755fce9af5c58aef13.tar.gz |
GtkModelButton: fix up naming
The convention we follow is that the PROP_foo define should
match the property name. Therefore, change PROP_MODEL to
PROP_MENU_MODEL to match "menu-model".
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmenubutton.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c index 466408410c..559a12a64a 100644 --- a/gtk/gtkmenubutton.c +++ b/gtk/gtkmenubutton.c @@ -135,7 +135,7 @@ enum { PROP_0, PROP_POPUP, - PROP_MODEL, + PROP_MENU_MODEL, PROP_ALIGN_WIDGET, PROP_DIRECTION, PROP_USE_POPOVER, @@ -159,7 +159,7 @@ gtk_menu_button_set_property (GObject *object, case PROP_POPUP: gtk_menu_button_set_popup (self, g_value_get_object (value)); break; - case PROP_MODEL: + case PROP_MENU_MODEL: gtk_menu_button_set_menu_model (self, g_value_get_object (value)); break; case PROP_ALIGN_WIDGET: @@ -192,7 +192,7 @@ gtk_menu_button_get_property (GObject *object, case PROP_POPUP: g_value_set_object (value, priv->menu); break; - case PROP_MODEL: + case PROP_MENU_MODEL: g_value_set_object (value, priv->model); break; case PROP_ALIGN_WIDGET: @@ -519,7 +519,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass) * Since: 3.6 */ g_object_class_install_property (gobject_class, - PROP_MODEL, + PROP_MENU_MODEL, g_param_spec_object ("menu-model", P_("Menu model"), P_("The model from which the popup is made."), |