Commit 111eb2d9 authored by Bastien Nocera's avatar Bastien Nocera Committed by Juan Pablo Ugarte
Browse files

GladeGtkListBox: Fix "format not a string literal" warning

glade-gtk-list-box.c: In function ‘glade_gtk_listbox_child_insert_action’:
glade-gtk-list-box.c:208:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
parent bc39a235
......@@ -197,7 +197,6 @@ static void
glade_gtk_listbox_child_insert_action (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *object,
const gchar *group_format,
gboolean after)
{
GladeWidget *parent;
......@@ -205,7 +204,7 @@ glade_gtk_listbox_child_insert_action (GladeWidgetAdaptor *adaptor,
gint position;
parent = glade_widget_get_from_gobject (container);
glade_command_push_group (group_format, glade_widget_get_name (parent));
glade_command_push_group (_("Insert Row on %s"), glade_widget_get_name (parent));
position = gtk_list_box_row_get_index (GTK_LIST_BOX_ROW (object));
if (after)
......@@ -249,13 +248,11 @@ glade_gtk_listbox_child_action_activate (GladeWidgetAdaptor *adaptor,
if (strcmp (action_path, "insert_after") == 0)
{
glade_gtk_listbox_child_insert_action (adaptor, container, object,
_("Insert Row on %s"),
TRUE);
}
else if (strcmp (action_path, "insert_before") == 0)
{
glade_gtk_listbox_child_insert_action (adaptor, container, object,
_("Insert Row on %s"),
FALSE);
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment