Kaydet (Commit) df2e2c9e authored tarafından Nick Treleaven's avatar Nick Treleaven

Reduce Set Build Commands dialog column 1 width by using '#' label.

Fix memory leak.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5479 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 36378473
2010-12-09 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/build.c:
Reduce Set Build Commands dialog column 1 width by using '#' label.
Fix memory leak.
2010-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/build.c, src/build.h: * src/build.c, src/build.h:
......
...@@ -1844,7 +1844,7 @@ static void on_entry_focus(GtkWidget *wid, GdkEventFocus *unused, gpointer user_ ...@@ -1844,7 +1844,7 @@ static void on_entry_focus(GtkWidget *wid, GdkEventFocus *unused, gpointer user_
/* Column headings, array NULL-terminated */ /* Column headings, array NULL-terminated */
static const gchar *colheads[] = static const gchar *colheads[] =
{ {
N_("Item"), "#",
N_("Label"), N_("Label"),
N_("Command"), N_("Command"),
N_("Working directory"), N_("Working directory"),
...@@ -1869,8 +1869,11 @@ static RowWidgets *build_add_dialog_row(GeanyDocument *doc, GtkTable *table, gui ...@@ -1869,8 +1869,11 @@ static RowWidgets *build_add_dialog_row(GeanyDocument *doc, GtkTable *table, gui
gint src; gint src;
enum GeanyBuildCmdEntries i; enum GeanyBuildCmdEntries i;
guint column = 0; guint column = 0;
gchar *text;
label = gtk_label_new(g_strdup_printf("%d:", cmd + 1)); text = g_strdup_printf("%d.", cmd + 1);
label = gtk_label_new(text);
g_free(text);
insensitive_color = &(gtk_widget_get_style(label)->text[GTK_STATE_INSENSITIVE]); insensitive_color = &(gtk_widget_get_style(label)->text[GTK_STATE_INSENSITIVE]);
gtk_table_attach(table, label, column, column + 1, row, row + 1, GTK_FILL, gtk_table_attach(table, label, column, column + 1, row, row + 1, GTK_FILL,
GTK_FILL | GTK_EXPAND, entry_x_padding, entry_y_padding); GTK_FILL | GTK_EXPAND, entry_x_padding, entry_y_padding);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment