Ensure G_PARAM_STATIC_STRINGS for all properties
In `st`, we can do this by using `ST_PARAM_*`. In the other code files, just use `G_PARAM_STATIC_STRINGS` directly. This is just a minor convenience to prevent a few unnecessary string copies. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/646
This commit is contained in:

committed by
Florian Müllner

parent
d360114226
commit
28ab1f4af4
@ -1533,7 +1533,7 @@ shell_app_class_init(ShellAppClass *klass)
|
||||
"Application state",
|
||||
SHELL_TYPE_APP_STATE,
|
||||
SHELL_APP_STATE_STOPPED,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* ShellApp:busy:
|
||||
@ -1546,7 +1546,7 @@ shell_app_class_init(ShellAppClass *klass)
|
||||
"Busy",
|
||||
"Busy state",
|
||||
FALSE,
|
||||
G_PARAM_READABLE));
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* ShellApp:id:
|
||||
|
Reference in New Issue
Block a user