[gtk+] widget-factory: Add a system tab to the about dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Add a system tab to the about dialog
- Date: Thu, 12 Jan 2017 20:30:51 +0000 (UTC)
commit b355c80977acedf5e77695e8b0cbbe19986cbd6b
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 12 15:30:11 2017 -0500
widget-factory: Add a system tab to the about dialog
Just for trying it out.
demos/widget-factory/widget-factory.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 024874c..61ff61b 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -203,6 +203,20 @@ activate_about (GSimpleAction *action,
NULL
};
gchar *version;
+ GString *s;
+
+ s = g_string_new ("");
+
+ g_string_append (s, "System libraries\n");
+ g_string_append_printf (s, "\tGLib\t%d.%d.%d\n",
+ glib_major_version,
+ glib_minor_version,
+ glib_micro_version);
+ g_string_append_printf (s, "\tGTK+\t%d.%d.%d\n",
+ gtk_get_major_version (),
+ gtk_get_minor_version (),
+ gtk_get_micro_version ());
+ g_string_append_printf (s, "\nA link can apppear here: <http://www.gtk.org>");
version = g_strdup_printf ("%s\nRunning against GTK+ %d.%d.%d",
PACKAGE_VERSION,
@@ -220,8 +234,10 @@ activate_about (GSimpleAction *action,
"authors", authors,
"logo-icon-name", "gtk3-widget-factory",
"title", "About GTK+ Widget Factory",
+ "system-information", s->str,
NULL);
+ g_string_free (s, TRUE);
g_free (version);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]