From 4ba5b4c217ea40521f5cb395574bb2136441c1dc Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 9 Dec 2010 13:14:50 +0000 Subject: [PATCH] Use italic for note labels in the Build Commands dialog. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5480 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 2 ++ src/build.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ccf7246d1..263474e23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * src/build.c: Reduce Set Build Commands dialog column 1 width by using '#' label. Fix memory leak. + * src/build.c: + Use italic for note labels in the Build Commands dialog. 2010-12-08 Nick Treleaven diff --git a/src/build.c b/src/build.c index 1e969fcc3..4845e256b 100644 --- a/src/build.c +++ b/src/build.c @@ -2043,7 +2043,9 @@ GtkWidget *build_commands_table(GeanyDocument *doc, GeanyBuildSource dst, BuildT gtk_widget_set_sensitive(fields->nonfileregex, sensitivity); gtk_widget_set_sensitive(clear, sensitivity); ++row; - label = gtk_label_new(_("Note: Item 2 opens a dialog and appends the response to the command.")); + label = gtk_label_new(NULL); + ui_label_set_markup(GTK_LABEL(label), "%s", + _("Note: Item 2 opens a dialog and appends the response to the command.")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(table, label, 0, DC_N_COL, row, row + 1, GTK_FILL, GTK_FILL | GTK_EXPAND, entry_x_padding, entry_y_padding); @@ -2062,7 +2064,8 @@ GtkWidget *build_commands_table(GeanyDocument *doc, GeanyBuildSource dst, BuildT gtk_table_attach(table, sep, 0, DC_N_COL, row, row + 1, GTK_FILL, GTK_FILL | GTK_EXPAND, entry_x_padding, sep_padding); ++row; - label = gtk_label_new( + label = gtk_label_new(NULL); + ui_label_set_markup(GTK_LABEL(label), "%s", _("%d, %e, %f, %p are substituted in command and directory fields, see manual for details.")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(table, label, 0, DC_N_COL, row, row + 1, GTK_FILL, GTK_FILL | GTK_EXPAND, -- 2.11.4.GIT