Commit 32e12385 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

GladeGtkScrolledWindow: fix add_verify()

Respect user_feedback parameter in glade_gtk_scrolled_window_add_child_verify()
parent e5b891d5
Pipeline #217670 passed with stages
in 3 minutes and 55 seconds
......@@ -66,10 +66,15 @@ glade_gtk_scrolled_window_add_child_verify (GladeWidgetAdaptor *adaptor,
GtkWidget *child,
gboolean user_feedback)
{
GladeWidget *gcontainer = glade_widget_get_from_gobject (container);
GladeWidget *gchild = glade_widget_get_from_gobject (child);
if (user_feedback)
{
GladeWidget *gcontainer = glade_widget_get_from_gobject (container);
GladeWidget *gchild = glade_widget_get_from_gobject (child);
return !glade_util_check_and_warn_scrollable (gcontainer,
glade_widget_get_adaptor (gchild),
glade_app_get_window ());
return !glade_util_check_and_warn_scrollable (gcontainer,
glade_widget_get_adaptor (gchild),
glade_app_get_window ());
}
else
return GTK_IS_SCROLLED_WINDOW (container) && GTK_IS_SCROLLABLE (child);
}
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