[gnumeric] Fix formatting in solver dialog



commit 98fa7665e5525a51cb2d540d6180c0551affa363
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Mon Sep 23 08:50:58 2013 -0600

    Fix formatting in solver dialog
    
    2013-09-23  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * solver.ui: fix text alignment
        * dialog-solver.c (dialog_init): use the whole width for
        expression entries

 src/dialogs/ChangeLog       |    6 ++++++
 src/dialogs/dialog-solver.c |    4 ++--
 src/dialogs/solver.ui       |    4 ++--
 3 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index fb082e6..4a96a12 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-23  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * solver.ui: fix text alignment
+       * dialog-solver.c (dialog_init): use the whole width for
+       expression entries
+
 2013-09-23  Jean Brefort  <jean brefort normalesup org>
 
        * cell-format.ui: add a border around font selector. [#708567]
diff --git a/src/dialogs/dialog-solver.c b/src/dialogs/dialog-solver.c
index 2418c01..3e378dd 100644
--- a/src/dialogs/dialog-solver.c
+++ b/src/dialogs/dialog-solver.c
@@ -1027,7 +1027,7 @@ dialog_init (SolverState *state)
                GNM_EE_FORCE_ABS_REF |
                GNM_EE_SHEET_OPTIONAL, GNM_EE_MASK);
        gtk_widget_set_hexpand (GTK_WIDGET (state->target_entry), TRUE);
-       gtk_grid_attach (grid, GTK_WIDGET (state->target_entry), 1, 0, 1, 1);
+       gtk_grid_attach (grid, GTK_WIDGET (state->target_entry), 1, 0, 2, 1);
        gnumeric_editable_enters (GTK_WINDOW (state->dialog),
                                  GTK_WIDGET (state->target_entry));
        gtk_widget_show (GTK_WIDGET (state->target_entry));
@@ -1043,7 +1043,7 @@ dialog_init (SolverState *state)
                GNM_EE_SHEET_OPTIONAL, GNM_EE_MASK);
        gtk_widget_set_hexpand (GTK_WIDGET (state->change_cell_entry), TRUE);
        gtk_grid_attach (grid,
-                        GTK_WIDGET (state->change_cell_entry), 1, 2, 1, 1);
+                        GTK_WIDGET (state->change_cell_entry), 1, 2, 2, 1);
        gnumeric_editable_enters (GTK_WINDOW (state->dialog),
                                  GTK_WIDGET (state->change_cell_entry));
        gtk_widget_show (GTK_WIDGET (state->change_cell_entry));
diff --git a/src/dialogs/solver.ui b/src/dialogs/solver.ui
index 35d1c31..b0b82ce 100644
--- a/src/dialogs/solver.ui
+++ b/src/dialogs/solver.ui
@@ -728,7 +728,7 @@
                     <property name="receives_default">False</property>
                     <property name="use_action_appearance">False</property>
                     <property name="use_underline">True</property>
-                    <property name="xalign">0.5</property>
+                    <property name="xalign">0</property>
                     <property name="draw_indicator">True</property>
                   </object>
                   <packing>
@@ -746,7 +746,7 @@
                     <property name="receives_default">False</property>
                     <property name="use_action_appearance">False</property>
                     <property name="use_underline">True</property>
-                    <property name="xalign">0.5</property>
+                    <property name="xalign">0</property>
                     <property name="draw_indicator">True</property>
                     <property name="group">no_scenario</property>
                   </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]