diff options
author | Daniel Boles <dboles.src@gmail.com> | 2018-04-04 00:14:04 +0100 |
---|---|---|
committer | Daniel Boles <dboles.src@gmail.com> | 2018-04-04 00:14:04 +0100 |
commit | e289fad4aaa8c12b47731e73f2672a14d6c46534 (patch) | |
tree | b8b3f12667f24ae7c24664dfd6cf7ed697c539b1 | |
parent | f41e1cd4f23f9f7d35e6ca5880eda9b42509bcdc (diff) | |
download | glade-e289fad4aaa8c12b47731e73f2672a14d6c46534.tar.gz |
ui/widget: Make template ver# warning more usefulwip/dboles/template-version-warning
Composite widget templates are only supported by GTK+ 3.10 and up, but
if a user targeted a lower version, we only told them that said version
did not support templates, but provided no help on how to resolve that.
A user in #gtk+ mistook that vague warning as meaning widget templates
had been deprecated in their (then) target version, GTK+ 3.0. Whoops!
It makes more sense to tell users what version they need, which is new
info, instead of what they are currently targeting, which they know.
-rw-r--r-- | gladeui/glade-widget.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c index e2b38744..960e3fd2 100644 --- a/gladeui/glade-widget.c +++ b/gladeui/glade-widget.c @@ -4800,8 +4800,7 @@ glade_widget_verify (GladeWidget *widget) glade_project_get_target_version (priv->project, "gtk+", &major, &minor); if (major == 3 && minor < 10) - warning = g_strdup_printf (_("Template classes are not supported in gtk+ %d.%d"), - major, minor); + warning = g_strdup (_("Template classes are only usable in GTK+ 3.10 and later.")); } if (!warning && GLADE_IS_OBJECT_STUB (priv->object)) |