gnucash maint: Use proper GtkAction function instead of generic g_object call
Geert Janssens
gjanssens at code.gnucash.org
Mon Sep 24 12:25:12 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/9c9068cf (commit)
from https://github.com/Gnucash/gnucash/commit/f89a40e3 (commit)
commit 9c9068cf5a7bbfd86eacfd62fdfa515b533ae651
Author: Geert Janssens <geert at kobaltwit.be>
Date: Mon Sep 24 18:24:40 2018 +0200
Use proper GtkAction function instead of generic g_object call
diff --git a/gnucash/gnome-utils/gnc-plugin.c b/gnucash/gnome-utils/gnc-plugin.c
index a06b8d6..33d5bc6 100644
--- a/gnucash/gnome-utils/gnc-plugin.c
+++ b/gnucash/gnome-utils/gnc-plugin.c
@@ -274,8 +274,7 @@ gnc_plugin_init_short_names (GtkActionGroup *action_group,
/* Add a couple of short labels for the toolbar */
action = gtk_action_group_get_action (action_group,
toolbar_labels[i].action_name);
- g_value_set_static_string (&value, gettext(toolbar_labels[i].label));
- g_object_set_property (G_OBJECT(action), "short_label", &value);
+ gtk_action_set_short_label (action, toolbar_labels[i].label);
}
}
Summary of changes:
gnucash/gnome-utils/gnc-plugin.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
More information about the gnucash-changes
mailing list