[gnumeric] Sheet Resize: fix minor dialog problem. #580229.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Sheet Resize: fix minor dialog problem. #580229.
- Date: Sat, 25 Apr 2009 14:28:34 -0400 (EDT)
commit 93e8a60b58524ed600f829aa419a4eb49dbda7d7
Author: Morten Welinder <terra gnome org>
Date: Sat Apr 25 14:29:15 2009 -0400
Sheet Resize: fix minor dialog problem. #580229.
---
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-sheet-resize.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 512afb1..21ee5b1 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-25 Morten Welinder <terra gnome org>
+
+ * dialog-sheet-resize.c (dialog_sheet_resize): Force an update of
+ the sizes. Fixes #580229.
+
2009-04-23 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-so-styled.c (DialogSOStyled): add button field
diff --git a/src/dialogs/dialog-sheet-resize.c b/src/dialogs/dialog-sheet-resize.c
index a1d6c52..cd4595a 100644
--- a/src/dialogs/dialog-sheet-resize.c
+++ b/src/dialogs/dialog-sheet-resize.c
@@ -96,7 +96,7 @@ static void
init_scale (GtkWidget *scale, int N)
{
GtkAdjustment *adj = gtk_range_get_adjustment (GTK_RANGE (scale));
- g_object_set (G_OBJECT (adj), "value", (double)mylog2 (N), NULL);
+ gtk_adjustment_set_value (adj, mylog2 (N));
}
static void
@@ -193,6 +193,7 @@ dialog_sheet_resize (WBCGtk *wbcg)
"value-changed", G_CALLBACK (cb_scale_changed),
state);
init_scale (state->rows_scale, gnm_sheet_get_max_rows (state->sheet));
+ cb_scale_changed (state);
g_signal_connect_swapped (G_OBJECT (state->cancel_button),
"clicked", G_CALLBACK (gtk_widget_destroy),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]