Bug 750920 - Show commit number in About dialog

Done.
This commit is contained in:
Michael Natterer 2015-08-21 10:26:30 +02:00
parent c960069198
commit 4161ea9cd7
1 changed files with 16 additions and 2 deletions

View File

@ -39,6 +39,8 @@
#include "about-dialog.h"
#include "authors.h"
#include "git-version.h"
#include "gimp-intl.h"
@ -599,9 +601,21 @@ about_dialog_timer (gpointer data)
static void
about_dialog_add_unstable_message (GtkWidget *vbox)
{
GtkWidget *label;
GtkWidget *label;
const gchar *version;
gchar *short_hash;
gchar *text;
label = gtk_label_new (_("This is an unstable development release."));
version = GIMP_GIT_VERSION;
short_hash = g_strdup (version + strlen (version) - 7);
text = g_strdup_printf (_("This is an unstable development release\n"
"commit %s"), short_hash);
label = gtk_label_new (text);
g_free (text);
g_free (short_hash);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
gimp_label_set_attributes (GTK_LABEL (label),
PANGO_ATTR_STYLE, PANGO_STYLE_ITALIC,
-1);