[geany/geany] c29bf2: Show the GTK/GLib versions in about dialog (#2163)
Matthew Brush
git-noreply at xxxxx
Fri Aug 16 23:02:15 UTC 2019
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: GitHub <noreply at github.com>
Date: Fri, 16 Aug 2019 23:02:15 UTC
Commit: c29bf208530f4a852c176afd6b8f65e1436c4611
https://github.com/geany/geany/commit/c29bf208530f4a852c176afd6b8f65e1436c4611
Log Message:
-----------
Show the GTK/GLib versions in about dialog (#2163)
Modified Paths:
--------------
src/about.c
Modified: src/about.c
17 lines changed, 17 insertions(+), 0 deletions(-)
===================================================================
@@ -43,6 +43,7 @@
#define INFO "<span size=\"larger\" weight=\"bold\">%s</span>"
#define CODENAME "<span weight=\"bold\">\"" GEANY_CODENAME "\"</span>"
#define BUILDDATE "<span size=\"smaller\">%s</span>"
+#define RUNTIME BUILDDATE
#define COPYRIGHT _("Copyright (c) 2005\nThe Geany contributors")
static const gchar *translators[][2] = {
@@ -143,6 +144,7 @@ static GtkWidget *create_dialog(void)
GtkWidget *label_info;
GtkWidget *codename_label;
GtkWidget *builddate_label;
+ GtkWidget *runtime_label;
GtkWidget *url_button;
GtkWidget *cop_label;
GtkWidget *label;
@@ -241,6 +243,21 @@ static GtkWidget *create_dialog(void)
gtk_widget_show(builddate_label);
gtk_box_pack_start(GTK_BOX(info_box), builddate_label, FALSE, FALSE, 0);
+ /* GTK+/GLib runtime version label */
+ runtime_label = gtk_label_new(NULL);
+ gtk_label_set_justify(GTK_LABEL(runtime_label), GTK_JUSTIFY_CENTER);
+ gtk_label_set_selectable(GTK_LABEL(runtime_label), TRUE);
+ gtk_label_set_use_markup(GTK_LABEL(runtime_label), TRUE);
+ g_snprintf(buffer2, sizeof(buffer2),
+ _("Using GTK+ v%u.%u.%u and GLib v%u.%u.%u runtime libraries"),
+ gtk_major_version, gtk_minor_version, gtk_micro_version,
+ glib_major_version, glib_minor_version, glib_micro_version);
+ g_snprintf(buffer, sizeof(buffer), RUNTIME, buffer2);
+ gtk_label_set_markup(GTK_LABEL(runtime_label), buffer);
+ gtk_misc_set_padding(GTK_MISC(runtime_label), 2, 2);
+ gtk_widget_show(runtime_label);
+ gtk_box_pack_start(GTK_BOX(info_box), runtime_label, FALSE, FALSE, 0);
+
box = gtk_hbutton_box_new();
url_button = gtk_button_new();
gtk_button_set_relief(GTK_BUTTON(url_button), GTK_RELIEF_NONE);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list