Commit d73acfa7 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

fix formatting on all pages no need to go back if there is only one sheet

2004-10-18  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* dialog-stf-export.glade: fix formatting on all pages
	* dialog-stf-export.c (stf_export_dialog_switch_page): no need to
	  go back if there is only one sheet
	(stf_export_dialog): we can go directly to format specifications
	  if there is only one sheet.
parent a5e3c61b
......@@ -2,6 +2,7 @@ Gnumeric 1.3.92
Andreas:
* Fix text export dialog [#155437, #154231]
* Skip sheet selection in text export if there is only one sheet.
Hal Ashburner:
* Some function documentation cleanups.
......
2004-10-18 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-stf-export.glade: fix formatting on all pages
* dialog-stf-export.c (stf_export_dialog_switch_page): no need to
go back if there is only one sheet
(stf_export_dialog): we can go directly to format specifications
if there is only one sheet.
2004-10-18 Andreas J. Guelzow <aguelzow@taliesin.ca>
http://bugzilla.gnome.org/show_bug.cgi?id=155437
......
......@@ -403,7 +403,9 @@ stf_export_dialog_switch_page (TextExportState *state, TextExportPage new_page)
label = _("_Finish");
image = GTK_STOCK_APPLY;
}
gtk_widget_set_sensitive (state->back_button, state->cur_page != PAGE_SHEETS);
gtk_widget_set_sensitive (state->back_button,
(state->cur_page != PAGE_SHEETS) &&
(state->sheets.num > 1));
gtk_label_set_label (GTK_LABEL (state->next_label), label);
gtk_image_set_from_stock (GTK_IMAGE (state->next_image),
image, GTK_ICON_SIZE_BUTTON);
......@@ -455,7 +457,8 @@ stf_export_dialog (WorkbookControlGUI *wbcg, Workbook *wb)
state.result = NULL;
stf_export_dialog_sheet_page_init (&state);
stf_export_dialog_format_page_init (&state);
stf_export_dialog_switch_page (&state, PAGE_SHEETS);
stf_export_dialog_switch_page (&state,
(1 == state.sheets.num) ? PAGE_FORMAT : PAGE_SHEETS);
gtk_widget_grab_default (state.next_button);
g_signal_connect_swapped (G_OBJECT (state.back_button),
"clicked",
......
......@@ -466,9 +466,9 @@
<child>
<widget class="GtkLabel" id="format_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;span background=&quot;#4B6983&quot; foreground=&quot;white&quot; size=&quot;xx-large&quot;&gt;Choose export formatting&lt;/span&gt;</property>
<property name="label" translatable="yes">Choose export formatting:</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
......
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