mirror of https://github.com/GNOME/gimp.git
parent
c960069198
commit
4161ea9cd7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue