From 524e5c62c0f9220700b8153585a8e1923f2971ab Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 15 Mar 2002 20:39:43 +0000 Subject: Set horizontal scroll policy to GTK_POLICY_NEVER here. Don't set usize 2002-03-15 Christopher James Lahey * e-multi-config-dialog.c (init): Set horizontal scroll policy to GTK_POLICY_NEVER here. Don't set usize here. Changed RGBA_COLOR to RGB_COLOR. Turned on horizontal resize. svn path=/trunk/; revision=16176 --- widgets/misc/e-multi-config-dialog.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'widgets/misc/e-multi-config-dialog.c') diff --git a/widgets/misc/e-multi-config-dialog.c b/widgets/misc/e-multi-config-dialog.c index 9f9e699c18..71068d3f34 100644 --- a/widgets/misc/e-multi-config-dialog.c +++ b/widgets/misc/e-multi-config-dialog.c @@ -61,7 +61,7 @@ static char *list_e_table_spec = " selection-mode=\"browse\"" " no-headers=\"true\"" " alternating-row-colors=\"false\"" -/* " horizontal-resize=\"true\""*/ + " horizontal-resize=\"true\"" ">" " > 8) @@ -283,9 +283,9 @@ fill_in_pixbufs (EMultiConfigDialog *dialog, int row) canvas = GTK_WIDGET (e_table_scrolled_get_table (E_TABLE_SCROLLED (dialog->priv->list_e_table))->table_canvas); - colors[0] = RGBA_COLOR (canvas->style->bg [GTK_STATE_SELECTED]); - colors[1] = RGBA_COLOR (canvas->style->bg [GTK_STATE_ACTIVE]); - colors[2] = RGBA_COLOR (canvas->style->base [GTK_STATE_NORMAL]); + colors[0] = RGB_COLOR (canvas->style->bg [GTK_STATE_SELECTED]); + colors[1] = RGB_COLOR (canvas->style->bg [GTK_STATE_ACTIVE]); + colors[2] = RGB_COLOR (canvas->style->base [GTK_STATE_NORMAL]); g_print ("%x %x", colors[1], canvas->style->bg [GTK_STATE_ACTIVE].green); @@ -347,8 +347,8 @@ init (EMultiConfigDialog *multi_config_dialog) pixbuf = e_cell_pixbuf_new(); gtk_object_set (GTK_OBJECT (pixbuf), - "selected_column", 3, "focused_column", 2, + "selected_column", 3, "unselected_column", 4, NULL); e_cell_vbox_append (E_CELL_VBOX (vbox), pixbuf, 1); @@ -362,7 +362,7 @@ init (EMultiConfigDialog *multi_config_dialog) e_table_extras_add_cell (extras, "vbox", vbox); list_e_table = e_table_scrolled_new (list_e_table_model, extras, list_e_table_spec, NULL); - e_scroll_frame_set_policy (E_SCROLL_FRAME (list_e_table), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + e_scroll_frame_set_policy (E_SCROLL_FRAME (list_e_table), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table (E_TABLE_SCROLLED (list_e_table))), "cursor_change", GTK_SIGNAL_FUNC (table_cursor_change_callback), multi_config_dialog); @@ -373,8 +373,6 @@ init (EMultiConfigDialog *multi_config_dialog) gtk_object_unref (GTK_OBJECT (extras)); - gtk_widget_set_usize (list_e_table, 150, -1); - gtk_box_pack_start (GTK_BOX (hbox), list_e_table, FALSE, TRUE, 0); notebook = gtk_notebook_new (); -- cgit v1.2.3