Commit 1522c95d authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

GladeDesignLayout: use new api to check if a widget has a name

parent f4454400
......@@ -948,15 +948,15 @@ update_widget_name (GladeDesignLayout *layout, GladeWidget *gwidget)
if (priv->widget_name && gwidget)
gchar *name = glade_widget_get_name (gwidget);
if (g_str_has_prefix (name, GLADE_UNNAMED_PREFIX))
if (glade_widget_has_name (gwidget))
pango_layout_set_text (priv->widget_name, glade_widget_get_display_name (gwidget), -1);
GladeWidgetAdaptor *adaptor = glade_widget_get_adaptor (gwidget);
pango_layout_set_text (priv->widget_name, glade_widget_adaptor_get_name (adaptor), -1);
pango_layout_set_text (priv->widget_name, name, -1);
gtk_widget_queue_resize (GTK_WIDGET (layout));
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