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

GladeGtkFlowBox: Fix "format not a string literal" warning

glade-gtk-flow-box.c: In function ‘glade_gtk_flowbox_child_insert_action’:
glade-gtk-flow-box.c:205: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 6c53270e
...@@ -194,7 +194,6 @@ static void ...@@ -194,7 +194,6 @@ static void
glade_gtk_flowbox_child_insert_action (GladeWidgetAdaptor *adaptor, glade_gtk_flowbox_child_insert_action (GladeWidgetAdaptor *adaptor,
GObject *container, GObject *container,
GObject *object, GObject *object,
const gchar *group_format,
gboolean after) gboolean after)
{ {
GladeWidget *parent; GladeWidget *parent;
...@@ -202,7 +201,7 @@ glade_gtk_flowbox_child_insert_action (GladeWidgetAdaptor *adaptor, ...@@ -202,7 +201,7 @@ glade_gtk_flowbox_child_insert_action (GladeWidgetAdaptor *adaptor,
gint position; gint position;
parent = glade_widget_get_from_gobject (container); parent = glade_widget_get_from_gobject (container);
glade_command_push_group (group_format, glade_widget_get_name (parent)); glade_command_push_group (_("Insert Child on %s"), glade_widget_get_name (parent));
position = gtk_flow_box_child_get_index (GTK_FLOW_BOX_CHILD (object)); position = gtk_flow_box_child_get_index (GTK_FLOW_BOX_CHILD (object));
if (after) if (after)
...@@ -246,13 +245,11 @@ glade_gtk_flowbox_child_action_activate (GladeWidgetAdaptor *adaptor, ...@@ -246,13 +245,11 @@ glade_gtk_flowbox_child_action_activate (GladeWidgetAdaptor *adaptor,
if (strcmp (action_path, "insert_after") == 0) if (strcmp (action_path, "insert_after") == 0)
{ {
glade_gtk_flowbox_child_insert_action (adaptor, container, object, glade_gtk_flowbox_child_insert_action (adaptor, container, object,
_("Insert Child on %s"),
TRUE); TRUE);
} }
else if (strcmp (action_path, "insert_before") == 0) else if (strcmp (action_path, "insert_before") == 0)
{ {
glade_gtk_flowbox_child_insert_action (adaptor, container, object, glade_gtk_flowbox_child_insert_action (adaptor, container, object,
_("Insert Child on %s"),
FALSE); FALSE);
} }
else 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