mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
GApplication: make menu properties readwrite
Otherwise the notify signals won't be emitted.
This commit is contained in:
parent
ef8c443092
commit
ac8bc3d407
@ -721,14 +721,14 @@ g_application_class_init (GApplicationClass *class)
|
|||||||
P_("Application menu"),
|
P_("Application menu"),
|
||||||
P_("The GMenuModel for the application menu"),
|
P_("The GMenuModel for the application menu"),
|
||||||
G_TYPE_MENU_MODEL,
|
G_TYPE_MENU_MODEL,
|
||||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
g_object_class_install_property (object_class, PROP_MENUBAR,
|
g_object_class_install_property (object_class, PROP_MENUBAR,
|
||||||
g_param_spec_object ("menubar",
|
g_param_spec_object ("menubar",
|
||||||
P_("Menubar"),
|
P_("Menubar"),
|
||||||
P_("The GMenuModel for the menubar"),
|
P_("The GMenuModel for the menubar"),
|
||||||
G_TYPE_MENU_MODEL,
|
G_TYPE_MENU_MODEL,
|
||||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GApplication::startup:
|
* GApplication::startup:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user