summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-10 20:02:07 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-10 20:02:07 +0200
commit9e7614479ed21e7573b4f5d70008c4ecf9d14bdc (patch)
treeed826cded275c48ad910e63b6813d11426a6f0e0
parent449aadcd2f7e74d59487c3e215dca1ddf70a69f4 (diff)
put previous groupby value into edit box for custom grouping dialog
-rw-r--r--plugins/gtkui/plcommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c
index e2f8bb2e..0e7f0da7 100644
--- a/plugins/gtkui/plcommon.c
+++ b/plugins/gtkui/plcommon.c
@@ -459,11 +459,12 @@ on_group_by_custom_activate (GtkMenuItem *menuitem,
GtkWidget *dlg = create_groupbydlg ();
gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_OK);
+ GtkWidget *entry = lookup_widget (dlg, "format");
+ gtk_entry_set_text (GTK_ENTRY (entry), group_by_str);
// gtk_window_set_title (GTK_WINDOW (dlg), "Group by");
gint response = gtk_dialog_run (GTK_DIALOG (dlg));
if (response == GTK_RESPONSE_OK) {
- GtkWidget *entry = lookup_widget (dlg, "format");
const gchar *text = gtk_entry_get_text (GTK_ENTRY (entry));
strncpy (group_by_str, text, sizeof (group_by_str));
group_by_str[sizeof (group_by_str)-1] = 0;