diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2020-09-17 08:55:51 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2020-09-17 19:35:38 -0300 |
commit | d09d5690a11d6ded682975ad3c505d351b16d8db (patch) | |
tree | 0eacaf849d908cc819119abf376911f67815b1b3 /src/glade-window.c | |
parent | 0066ee41bd9efeb04239a96172bc3f76969eb3f9 (diff) | |
download | glade-d09d5690a11d6ded682975ad3c505d351b16d8db.tar.gz |
GladeWindow: use VCS version in development series
Closes issue #472 "gnome-nightly: About dialog should display git commit rev"
Diffstat (limited to 'src/glade-window.c')
-rw-r--r-- | src/glade-window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/glade-window.c b/src/glade-window.c index c4b8145f..c71e56d8 100644 --- a/src/glade-window.c +++ b/src/glade-window.c @@ -26,6 +26,7 @@ #include <config.h> +#include "version.h" #include "glade-window.h" #include "glade-resources.h" #include "glade-preferences.h" @@ -1456,8 +1457,6 @@ on_about_action_activate (GSimpleAction *action, GladeWindow *window = data; GladeWindowPrivate *priv = window->priv; - gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (priv->about_dialog), PACKAGE_VERSION); - gtk_window_present (priv->about_dialog); } @@ -2105,6 +2104,11 @@ glade_window_init (GladeWindow *window) /* Add Gdk backend as a class */ ctx = gtk_widget_get_style_context (GTK_WIDGET (window)); gtk_style_context_add_class (ctx, glade_window_get_gdk_backend ()); + + /* Check if this is a development version */ + if (GLADE_MINOR_VERSION % 2) + gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (priv->about_dialog), + VCS_VERSION); } static void |