diff options
author | Sophie Herold <sophie@hemio.de> | 2022-05-11 14:19:39 +0200 |
---|---|---|
committer | Sophie Herold <sophie@hemio.de> | 2022-05-11 18:16:29 +0200 |
commit | a546ae32d773a26f2f329f237e94bef74db6cce1 (patch) | |
tree | 2ae64ca0eee53ad0c73ec845ed9734c1df91b95d /gdk/gdktoplevel.c | |
parent | 9536eb654b15b2a906d4b63bbb9bb56a81e0a146 (diff) | |
download | gtk+-a546ae32d773a26f2f329f237e94bef74db6cce1.tar.gz |
Remove all nicks and blurbs from param specs
Those property features don't seem to be in use anywhere.
They are redundant since the docs cover the same information
and more. They also created unnecessary translation work.
Closes #4904
Diffstat (limited to 'gdk/gdktoplevel.c')
-rw-r--r-- | gdk/gdktoplevel.c | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c index 7536b9d8a8..8c92cd9c97 100644 --- a/gdk/gdktoplevel.c +++ b/gdk/gdktoplevel.c @@ -131,9 +131,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * The state of the toplevel. */ g_object_interface_install_property (iface, - g_param_spec_flags ("state", - P_("State"), - P_("State"), + g_param_spec_flags ("state", NULL, NULL, GDK_TYPE_TOPLEVEL_STATE, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -143,9 +141,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * The title of the surface. */ g_object_interface_install_property (iface, - g_param_spec_string ("title", - "Title", - "The title of the surface", + g_param_spec_string ("title", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -158,9 +154,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * startup feedback. */ g_object_interface_install_property (iface, - g_param_spec_string ("startup-id", - "Startup ID", - "The startup ID of the surface", + g_param_spec_string ("startup-id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -170,9 +164,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * The transient parent of the surface. */ g_object_interface_install_property (iface, - g_param_spec_object ("transient-for", - "Transient For", - "The transient parent of the surface", + g_param_spec_object ("transient-for", NULL, NULL, GDK_TYPE_SURFACE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -182,9 +174,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * Whether the surface is modal. */ g_object_interface_install_property (iface, - g_param_spec_boolean ("modal", - "Modal", - "Whether the surface is modal", + g_param_spec_boolean ("modal", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -194,9 +184,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * A list of textures to use as icon. */ g_object_interface_install_property (iface, - g_param_spec_pointer ("icon-list", - "Icon List", - "The list of icon textures", + g_param_spec_pointer ("icon-list", NULL, NULL, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); /** @@ -205,9 +193,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * Whether the window manager should add decorations. */ g_object_interface_install_property (iface, - g_param_spec_boolean ("decorated", - "Decorated", - "Decorated", + g_param_spec_boolean ("decorated", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -217,9 +203,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * Whether the window manager should allow to close the surface. */ g_object_interface_install_property (iface, - g_param_spec_boolean ("deletable", - "Deletable", - "Deletable", + g_param_spec_boolean ("deletable", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -229,9 +213,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * The fullscreen mode of the surface. */ g_object_interface_install_property (iface, - g_param_spec_enum ("fullscreen-mode", - "Fullscreen mode", - "Fullscreen mode", + g_param_spec_enum ("fullscreen-mode", NULL, NULL, GDK_TYPE_FULLSCREEN_MODE, GDK_FULLSCREEN_ON_CURRENT_MONITOR, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY)); @@ -242,9 +224,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface) * Whether the surface should inhibit keyboard shortcuts. */ g_object_interface_install_property (iface, - g_param_spec_boolean ("shortcuts-inhibited", - "Shortcuts inhibited", - "Whether keyboard shortcuts are inhibited", + g_param_spec_boolean ("shortcuts-inhibited", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY)); |