[Xfce4-commits] [apps/xfce4-terminal] 02/03: Use g_object_set to set the property instead of the deprecated call
noreply at xfce.org
noreply at xfce.org
Sun Jun 12 19:58:58 CEST 2016
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 1a495800dc2919f25ff5760a8a31e6ea57356183
Author: Igor <f2404 at yandex.ru>
Date: Sun Jun 12 12:18:33 2016 +0300
Use g_object_set to set the property instead of the deprecated call
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
terminal/terminal-app.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/terminal/terminal-app.c b/terminal/terminal-app.c
index 679946a..1ae1053 100644
--- a/terminal/terminal-app.c
+++ b/terminal/terminal-app.c
@@ -185,11 +185,10 @@ terminal_app_update_accels (TerminalApp *app)
g_object_get (G_OBJECT (app->preferences),
"shortcuts-no-menukey", &no_menukey,
NULL);
-
- gtk_settings_set_string_property (gtk_settings_get_default (),
- "gtk-menu-bar-accel",
- no_menukey ? "" : app->initial_menu_bar_accel,
- PACKAGE_NAME);
+ g_object_set (G_OBJECT (gtk_settings_get_default ()),
+ "gtk-menu-bar-accel",
+ no_menukey ? NULL : app->initial_menu_bar_accel,
+ NULL);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list