[gnumeric] Initialize string quote character in stf import dialog
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Initialize string quote character in stf import dialog
- Date: Wed, 14 Sep 2011 04:39:53 +0000 (UTC)
commit 0070967ecc83bd74e873deb0ad7f7f9c39919e93
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Sep 13 22:38:50 2011 -0600
Initialize string quote character in stf import dialog
2011-09-13 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/dialogs/dialog-stf-csv-page.c (csv_page_parseoptions_to_gui):
set string quote character
* src/dialogs/dialog-stf.ui: add id column prop
src/dialogs/ChangeLog | 6 ++++++
src/dialogs/dialog-stf-csv-page.c | 11 +++++++++++
src/dialogs/dialog-stf.ui | 1 +
3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 5e481f7..18527bc 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,11 @@
2011-09-13 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * src/dialogs/dialog-stf-csv-page.c (csv_page_parseoptions_to_gui):
+ set string quote character
+ * src/dialogs/dialog-stf.ui: add id column prop
+
+2011-09-13 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* src/dialogs/dialog-stf-csv-page.c: change widget name
* src/dialogs/dialog-stf.ui: add missing combobox
diff --git a/src/dialogs/dialog-stf-csv-page.c b/src/dialogs/dialog-stf-csv-page.c
index d8d6620..8d63b19 100644
--- a/src/dialogs/dialog-stf-csv-page.c
+++ b/src/dialogs/dialog-stf-csv-page.c
@@ -1,3 +1,4 @@
+/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* dialog-stf.c : Controls the widget on the CSV (Comma Separated Value) page.
*
@@ -181,6 +182,16 @@ csv_page_parseoptions_to_gui (StfDialogData *pagedata)
po->trim_seps);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pagedata->csv.csv_2x_indicator),
po->indicator_2x_is_single);
+
+ {
+ char buffer[7];
+ gint len;
+ len = g_unichar_to_utf8 (po->stringindicator, buffer);
+ buffer[len] = 0;
+ gtk_combo_box_set_active_id
+ (GTK_COMBO_BOX (pagedata->csv.csv_textindicator),
+ buffer);
+ }
}
diff --git a/src/dialogs/dialog-stf.ui b/src/dialogs/dialog-stf.ui
index b3fac75..1f08d4e 100644
--- a/src/dialogs/dialog-stf.ui
+++ b/src/dialogs/dialog-stf.ui
@@ -826,6 +826,7 @@
<property name="model">csv-textindicator-list</property>
<property name="has_entry">True</property>
<property name="entry_text_column">0</property>
+ <property name="id_column">0</property>
<child internal-child="entry">
<object class="GtkEntry" id="combobox-entry">
<property name="can_focus">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]