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

added dialog-row-height.c and dialog-col-width.c new new added checkbox

2002-04-08  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* Makefile.am : added dialog-row-height.c and dialog-col-width.c
	* dialog-row-height.c : new
	* dialog-col-width.c : new
	* dialog-row-heigth.glade : added checkbox and spin button
	* dialog-col-width.glade : ditto
	* dialogs.h : added dialog_row_height and dialog_col_width
	* dialog-zoom.glade : fix button formating

2002-04-08  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/colrow.c (colrow_set_sizes) : set to default if size is 0
	* src/commands.c (cmd_resize_colrow) : size == 0 means default size
	* src/summary.c : avoid warnings
	* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : just
	  call dialog_col_width
	(workbook_cmd_format_column_std_width) : ditto
	(sheet_dialog_set_row_height) : just call dialog_row_height
	(workbook_cmd_format_row_std_height) : ditto

2002-04-08  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* POTFILES.in : added src/dialogs/dialog-row-height.c and
	  src/dialogs/dialog-col-width.c
parent b8e6decd
......@@ -13,6 +13,11 @@ Release Critical
- Why doesn't float_range_function2 use its "flags" argument?
- 3D reference fixes on sheet deletion
- iconv utf8 password -> usc4 before hashing
- Fix dialogs:
- Hide Detail
- Show Detail
- Group
- Ungroup
1.2 Targets
-----------
......
2002-04-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/colrow.c (colrow_set_sizes) : set to default if size is 0
* src/commands.c (cmd_resize_colrow) : size == 0 means default size
* src/summary.c : avoid warnings
* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : just
call dialog_col_width
(workbook_cmd_format_column_std_width) : ditto
(sheet_dialog_set_row_height) : just call dialog_row_height
(workbook_cmd_format_row_std_height) : ditto
2002-04-07 Jon K Hellan <hellan@acm.org>
* configure.in: Test for isfinite as a macro.
......
......@@ -10,6 +10,7 @@ Andreas:
* Add preference dialog.
* Improve treeview cell renderers.
* Make Random Generator Tool undoable.
* Fix and improve row-height dialog.
Jody:
* Add password dialog to support encrypted input.
......
2002-04-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/colrow.c (colrow_set_sizes) : set to default if size is 0
* src/commands.c (cmd_resize_colrow) : size == 0 means default size
* src/summary.c : avoid warnings
* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : just
call dialog_col_width
(workbook_cmd_format_column_std_width) : ditto
(sheet_dialog_set_row_height) : just call dialog_row_height
(workbook_cmd_format_row_std_height) : ditto
2002-04-07 Jon K Hellan <hellan@acm.org>
* configure.in: Test for isfinite as a macro.
......
2002-04-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/colrow.c (colrow_set_sizes) : set to default if size is 0
* src/commands.c (cmd_resize_colrow) : size == 0 means default size
* src/summary.c : avoid warnings
* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : just
call dialog_col_width
(workbook_cmd_format_column_std_width) : ditto
(sheet_dialog_set_row_height) : just call dialog_row_height
(workbook_cmd_format_row_std_height) : ditto
2002-04-07 Jon K Hellan <hellan@acm.org>
* configure.in: Test for isfinite as a macro.
......
2002-04-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* POTFILES.in : added src/dialogs/dialog-row-height.c and
src/dialogs/dialog-col-width.c
2002-04-03 Duarte Loreto <happyguy_pt@hotmail.com>
* pt.po: Updated Portuguese translation.
......
......@@ -87,6 +87,7 @@ src/dialogs/dialog-autosave.c
src/dialogs/dialog-cell-comment.c
src/dialogs/dialog-cell-format.c
src/dialogs/dialog-cell-sort.c
src/dialogs/dialog-col-width.c
src/dialogs/dialog-consolidate.c
src/dialogs/dialog-define-names.c
src/dialogs/dialog-delete-cells.c
......@@ -102,6 +103,7 @@ src/dialogs/dialog-plugin-manager.c
src/dialogs/dialog-preferences.c
src/dialogs/dialog-printer-setup.c
src/dialogs/dialog-random-generator.c
src/dialogs/dialog-row-height.c
src/dialogs/dialog-search-replace.c
src/dialogs/dialog-search.c
src/dialogs/dialog-sheet-order.c
......
......@@ -431,18 +431,25 @@ colrow_set_sizes (Sheet *sheet, gboolean is_cols,
for (i = index->first ; i <= index->last ; ++i) {
int tmp = new_size;
if (tmp < 0)
gboolean set_default = (tmp == 0);
if (tmp < 0 || (set_default && !is_cols))
tmp = (is_cols)
? sheet_col_size_fit_pixels (sheet, i)
: sheet_row_size_fit_pixels (sheet, i);
if (tmp <= 0)
if (tmp <= 0 && !set_default)
continue;
if (set_default && tmp == 0)
tmp = (is_cols)
? sheet_col_get_default_size_pixels (sheet)
: sheet_row_get_default_size_pixels (sheet);
if (is_cols)
sheet_col_set_size_pixels (sheet, i, tmp, TRUE);
sheet_col_set_size_pixels (sheet, i, tmp, !set_default);
else
sheet_row_set_size_pixels (sheet, i, tmp, TRUE);
sheet_row_set_size_pixels (sheet, i, tmp, !set_default);
}
}
......
......@@ -1661,23 +1661,33 @@ cmd_resize_colrow (WorkbookControl *wbc, Sheet *sheet,
me->parent.cmd_descriptor = is_cols
? g_strdup_printf (_("Autofitting column %s"), list->str)
: g_strdup_printf (_("Autofitting row %s"), list->str);
else
else if (new_size > 0)
me->parent.cmd_descriptor = is_cols
? g_strdup_printf (_("Setting width of column %s to %d pixels"),
list->str, new_size)
: g_strdup_printf (_("Setting height of row %s to %d pixels"),
list->str, new_size);
else me->parent.cmd_descriptor = is_cols
? g_strdup_printf (_("Setting width of column %s to default"),
list->str)
: g_strdup_printf (
_("Setting height of row %s to default"), list->str);
} else {
if (new_size < 0)
me->parent.cmd_descriptor = is_cols
? g_strdup_printf (_("Autofitting columns %s"), list->str)
: g_strdup_printf (_("Autofitting columns %s"), list->str);
else
else if (new_size > 0)
me->parent.cmd_descriptor = is_cols
? g_strdup_printf (_("Setting width of columns %s to %d pixels"),
list->str, new_size)
: g_strdup_printf (_("Setting height of rows %s to %d pixels"),
list->str, new_size);
else me->parent.cmd_descriptor = is_cols
? g_strdup_printf (
_("Setting width of columns %s to default"), list->str)
: g_strdup_printf (
_("Setting height of rows %s to default"), list->str);
}
g_string_free (list, TRUE);
......
2002-04-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* Makefile.am : added dialog-row-height.c and dialog-col-width.c
* dialog-row-height.c : new
* dialog-col-width.c : new
* dialog-row-heigth.glade : added checkbox and spin button
* dialog-col-width.glade : ditto
* dialogs.h : added dialog_row_height and dialog_col_width
* dialog-zoom.glade : fix button formating
2002-04-05 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-random-generator.c : make undoable
......
......@@ -33,6 +33,7 @@ base_files = \
dialog-cell-comment.c \
dialog-cell-format.c \
dialog-cell-sort.c \
dialog-col-width.c \
dialog-consolidate.c \
dialog-function-select.c \
dialog-formula-guru.c \
......@@ -47,6 +48,7 @@ base_files = \
dialog-printer-setup.c \
dialog-preferences.c \
dialog-random-generator.c \
dialog-row-height.c \
dialog-search.c \
dialog-search-replace.c \
dialog-sheet-order.c \
......
......@@ -2,9 +2,9 @@
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd" >
<glade-interface>
<widget class="GtkDialog" id="dialog1">
<widget class="GtkDialog" id="dialog">
<property name="visible">no</property>
<property name="title" translatable="yes">Column width</property>
<property name="title" translatable="yes">Column Width</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="modal">no</property>
<property name="allow_shrink">yes</property>
......@@ -19,32 +19,54 @@
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="dialog-action_area1">
<property name="layout_style">GTK_BUTTONBOX_DEFAULT_STYLE</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child>
<widget class="GtkButton" id="button1">
<widget class="GtkButton" id="help_button">
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label">gtk-help</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="cancel_button">
<property name="can_default">yes</property>
<property name="has_default">yes</property>
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label">gtk-ok</property>
<property name="label">gtk-close</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button3">
<widget class="GtkButton" id="apply_button">
<property name="can_default">yes</property>
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label">gtk-cancel</property>
<property name="label">gtk-apply</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="ok_button">
<property name="can_default">yes</property>
<property name="has_default">yes</property>
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label">gtk-ok</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
......@@ -55,48 +77,133 @@
</child>
<child>
<widget class="GtkHBox" id="hbox1">
<property name="homogeneous">no</property>
<property name="spacing">4</property>
<property name="visible">yes</property>
<widget class="GtkTable" id="main_table">
<property name="border_width">8</property>
<property name="homogeneous">no</property>
<property name="row_spacing">4</property>
<property name="column_spacing">4</property>
<property name="n-rows">3</property>
<property name="n-columns">3</property>
<property name="visible">yes</property>
<child>
<widget class="GtkLabel" id="description">
<property name="label"></property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">yes</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_padding">0</property>
<property name="y_padding">0</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label1">
<widget class="GtkLabel" id="label2">
<property name="label"></property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">yes</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_padding">0</property>
<property name="y_padding">0</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label">
<property name="label" translatable="yes">_Column width (pts):</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">no</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">entry1</property>
<property name="mnemonic_widget">entry</property>
<property name="visible">yes</property>
<property name="use_underline">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_padding">0</property>
<property name="y_padding">0</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="entry1">
<property name="can_focus">yes</property>
<property name="has_focus">yes</property>
<property name="editable">yes</property>
<property name="text" translatable="yes"></property>
<property name="width-request">60</property>
<property name="max-length">0</property>
<property name="visibility">yes</property>
<property name="visible">yes</property>
</widget>
<widget class="GtkSpinButton" id="spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">3</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">5 5 1000 1 5 5</property>
</widget>
<packing>
<property name="padding">3</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_padding">0</property>
<property name="y_padding">0</property>
<property name="x_options">expand|fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="default_check">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Use Default</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_padding">0</property>
<property name="y_padding">0</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
......
/**
* dialog-col-width.c: Sets the magnification factor
*
* Author:
* Andreas J. Guelzow <aguelzow@taliesin.ca>
*
* (c) Copyright 2002 Andreas J. Guelzow <aguelzow@taliesin.ca>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gnumeric-config.h>
#include <gnumeric.h>
#include "dialogs.h"
#include <gui-util.h>
#include <commands.h>
#include <workbook-control.h>
#include <workbook.h>
#include <workbook-edit.h>
#include <sheet.h>
#include <application.h>
#include <workbook-cmd-format.h>
#include <libgnome/gnome-i18n.h>
#include <glade/glade.h>
#define GLADE_FILE "col-width.glade"
#define COL_WIDTH_DIALOG_KEY "col-width-dialog"
typedef struct {
GladeXML *gui;
WorkbookControlGUI *wbcg;
Sheet *sheet;
GtkWidget *dialog;
GtkWidget *ok_button;
GtkWidget *apply_button;
GtkWidget *cancel_button;
GtkWidget *default_check;
GtkWidget *description;
GtkSpinButton *spin;
gboolean set_default_value;
gnum_float orig_value;
gboolean orig_is_default;
gboolean orig_some_default;
gboolean orig_all_equal;
gboolean adjusting;
} ColWidthState;
static void
dialog_col_width_button_sensitivity (ColWidthState *state)
{
gnum_float value = gtk_spin_button_get_value (state->spin);
gboolean use_default = gtk_toggle_button_get_active
(GTK_TOGGLE_BUTTON (state->default_check));
gboolean changed_info;
if (state->set_default_value) {
changed_info = (state->orig_value != value);
} else {
changed_info = (((!state->orig_all_equal || (state->orig_value != value)
|| state->orig_some_default) && !use_default)
|| (use_default && !state->orig_is_default));
}
gtk_widget_set_sensitive (state->ok_button, changed_info);
gtk_widget_set_sensitive (state->apply_button, changed_info);
}
static gboolean
dialog_col_width_destroy (GtkObject *w, ColWidthState *state)
{
g_return_val_if_fail (w != NULL, FALSE);
g_return_val_if_fail (state != NULL, FALSE);
wbcg_edit_detach_guru (state->wbcg);
if (state->gui != NULL) {
g_object_unref (G_OBJECT (state->gui));
state->gui = NULL;
}
state->dialog = NULL;
g_free (state);
return FALSE;
}
static void
cb_dialog_col_width_cancel_clicked (GtkWidget *button, ColWidthState *state)
{
gtk_widget_destroy (state->dialog);
return;
}
static void
dialog_col_width_set_value (gnum_float value, ColWidthState *state)
{
gtk_spin_button_set_value (state->spin, value);
}
static void
dialog_col_width_load_value (ColWidthState *state)
{
GList *l;
gnum_float value = 0.0;
state->orig_is_default = TRUE;
state->orig_some_default = FALSE;
state->orig_all_equal = TRUE;
state->adjusting = TRUE;
if (state->set_default_value) {
value = sheet_col_get_default_size_pts (state->sheet);
} else {
for (l = state->sheet->selections; l; l = l->next){
Range *ss = l->data;
int col;
for (col = ss->start.col; col <= ss->end.col; col++){
ColRowInfo const *ri = sheet_col_get_info (state->sheet, col);
if (ri->hard_size)
state->orig_is_default = FALSE;
else
state->orig_some_default = TRUE;
if (value == 0.0)
value = ri->size_pts;
else if (value != ri->size_pts){
/* Values differ, so let the user enter the data */
state->orig_all_equal = FALSE;
}
}
}
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->default_check),
state->orig_is_default);
}
state->orig_value = value;
dialog_col_width_set_value (value, state);
dialog_col_width_button_sensitivity (state);
state->adjusting = FALSE;
}
static void
cb_dialog_col_width_value_changed (GtkSpinButton *spinbutton, ColWidthState *state)
{
if (!state->adjusting) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->default_check), FALSE);
dialog_col_width_button_sensitivity (state);
}
}
static void
cb_dialog_col_width_default_check_toggled (GtkToggleButton *togglebutton, ColWidthState *state)
{
if (!state->adjusting) {
if (gtk_toggle_button_get_active (togglebutton)) {
state->adjusting = TRUE;
dialog_col_width_set_value (sheet_col_get_default_size_pts (state->sheet),
state);
state->adjusting = FALSE;
}
dialog_col_width_button_sensitivity (state);
}
}
static void
cb_dialog_col_width_apply_clicked (GtkWidget *button, ColWidthState *state)
{
gnum_float value = gtk_spin_button_get_value (state->spin);
double const scale =
state->sheet->last_zoom_factor_used *
application_display_dpi_get (FALSE) / 72.;
int size_pixels = (int)(value * scale + 0.5);
gboolean use_default = gtk_toggle_button_get_active
(GTK_TOGGLE_BUTTON (state->default_check));
if (state->set_default_value) {
cmd_colrow_std_size (WORKBOOK_CONTROL (state->wbcg),
state->sheet, TRUE, value);
dialog_col_width_load_value (state);
} else {
if (use_default)
size_pixels = 0;
workbook_cmd_resize_selected_colrow (WORKBOOK_CONTROL (state->wbcg),
TRUE, state->sheet,
size_pixels);
dialog_col_width_load_value (state);
}
return;
}
static void
cb_dialog_col_width_ok_clicked (GtkWidget *button, ColWidthState *state)
{
cb_dialog_col_width_apply_clicked (button, state);
gtk_widget_destroy (state->dialog);
return;
}
static void
dialog_col_width_set_mode (gboolean set_default, ColWidthState *state)
{
state->set_default_value = set_default;
if (set_default) {
gtk_widget_hide (state->default_check);
gtk_label_set_text (GTK_LABEL (state->description),
_("Set standard/default column width"));
} else {
char *text;
char *name = g_markup_escape_text (state->sheet->name_unquoted, -1);
gtk_widget_show (state->default_check);
text = g_strdup_printf (_("Set column width of selection on "
"<span style='italic' weight='bold'>%s</span>"),
name);
gtk_label_set_markup (GTK_LABEL (state->description), text);
g_free (text);
g_free (name);
}
}
void
dialog_col_width (WorkbookControlGUI *wbcg, gboolean use_default)
{
ColWidthState *state;
g_return_if_fail (wbcg != NULL);
if (gnumeric_dialog_raise_if_exists (wbcg, COL_WIDTH_DIALOG_KEY))
return;
state = g_new (ColWidthState, 1);
state->wbcg = wbcg;
state->sheet = wb_control_cur_sheet (WORKBOOK_CONTROL (wbcg));
state->adjusting = FALSE;
state->gui = gnumeric_glade_xml_new (wbcg, GLADE_FILE);
g_return_if_fail (state->gui != NULL);
state->dialog = glade_xml_get_widget (state->gui, "dialog");
state->description = GTK_WIDGET (glade_xml_get_widget (state->gui, "description"));
state->spin = GTK_SPIN_BUTTON (glade_xml_get_widget (state->gui, "spin"));
gtk_spin_button_get_adjustment (state->spin)->lower =
state->sheet->cols.default_style.margin_a +
state->sheet->cols.default_style.margin_b;
g_signal_connect (G_OBJECT (state->spin),
"value-changed",
G_CALLBACK (cb_dialog_col_width_value_changed), state);
state->default_check = GTK_WIDGET (glade_xml_get_widget (state->gui, "default_check"));
g_signal_connect (G_OBJECT (state->default_check),
"clicked",
G_CALLBACK (cb_dialog_col_width_default_check_toggled), state);
state->ok_button = glade_xml_get_widget (state->gui, "ok_button");
g_signal_connect (G_OBJECT (state->ok_button),
"clicked",
G_CALLBACK (cb_dialog_col_width_ok_clicked), state);
state->apply_button = glade_xml_get_widget (state->gui, "apply_button");
g_signal_connect (G_OBJECT (state->apply_button),
"clicked",
G_CALLBACK (cb_dialog_col_width_apply_clicked), state);
state->cancel_button = glade_xml_get_widget (state->gui, "cancel_button");
g_signal_connect (G_OBJECT (state->cancel_button),
"clicked",
G_CALLBACK (cb_dialog_col_width_cancel_clicked), state);
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"col-width.html");
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
G_CALLBACK (dialog_col_width_destroy), state);
dialog_col_width_set_mode (use_default, state);
dialog_col_width_load_value (state);
wbcg_edit_attach_guru (state->wbcg, state->dialog);
gnumeric_keyed_dialog (wbcg, GTK_WINDOW (state->dialog),
COL_WIDTH_DIALOG_KEY);
gtk_widget_show (state->dialog);
}