patch for Formula Guru window, maximum edit text size



I noticed when trying to use the "Formula Guru", that when the window
is resized, the left/right text labels resize too, wasting space that
should be dedicated to the formula itself.

This humble patch minimizes the static label widths, so the editable
fields get the bulk of the width.

I hope you will accept my (very) small contribution.  There are other
changes I'd like to make in this window, like making the cursor work,
but this one I can handle right now. :-)

This patch is against the latest on the gnome_1_4 branch, but it should
also apply to the HEAD branch.

BTW, thanks for a great tool,
gm


--- gnumeric-gnome_1_4/src/dialogs/dialog-formula-guru.c.00     Sat Jan 26 07:45:22 2002
+++ gnumeric-gnome_1_4/src/dialogs/dialog-formula-guru.c        Sat Feb  9 13:22:49 2002
@@ -451,7 +451,7 @@
        gtk_table_attach (GTK_TABLE (state->arg_table),
                          as->name_label,
                          0, 1, row, row+1,
-                         GTK_EXPAND|GTK_FILL, 0, 0, 0);
+                         GTK_SHRINK|GTK_FILL, 0, 0, 0);
 
        as->entry = GNUMERIC_EXPR_ENTRY (gnumeric_expr_entry_new (state->wbcg));
        gnumeric_expr_entry_set_flags (
@@ -470,7 +470,7 @@
        gtk_table_attach (GTK_TABLE (state->arg_table),
                          as->type_label,
                          2, 3, row, row+1,
-                         GTK_EXPAND|GTK_FILL, 0, 0, 0);
+                         GTK_SHRINK|GTK_FILL, 0, 0, 0);
        g_free (label);
 
        /* FIXME : Do I really need focus-in ?  is there something less draconian */



-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
Home: gmargo yahoo com   gmargo pacbell net
Work: gmargo egg-sausage-bacon com



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