mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-plugin] g_value_unset, and don't use GValue
This commit is contained in:
parent
9632d5401d
commit
dec0ca0ec6
@ -235,11 +235,8 @@ gnc_plugin_init_short_names (GtkActionGroup *action_group,
|
||||
action_toolbar_labels *toolbar_labels)
|
||||
{
|
||||
GtkAction *action;
|
||||
GValue value = { 0, };
|
||||
gint i;
|
||||
|
||||
g_value_init (&value, G_TYPE_STRING);
|
||||
|
||||
for (i = 0; toolbar_labels[i].action_name; i++)
|
||||
{
|
||||
/* Add a couple of short labels for the toolbar */
|
||||
@ -306,6 +303,7 @@ gnc_plugin_update_actions (GtkActionGroup *action_group,
|
||||
g_list_length(gtk_action_group_list_actions(action_group)));
|
||||
}
|
||||
}
|
||||
g_value_unset (&gvalue);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user