From 074aff3059b7d127a7670c65ed3f1ae542b1b1cb Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 27 Jan 2000 07:25:26 +0000 Subject: Set the minimum_width. 2000-01-28 Christopher James Lahey * widgets/test-reflow.c: Set the minimum_width. * widgets/e-reflow.h, widgets/e-reflow.c: Added one more column line so that the right edge of the reflow will have a line. Also added a minimum_width so that even if the reflow is thinner than the window, when you resize it larger all the lines are drawn. svn path=/trunk/; revision=1648 --- addressbook/gui/widgets/test-reflow.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/test-reflow.c b/addressbook/gui/widgets/test-reflow.c index 9efc2722dd..4533e0249d 100644 --- a/addressbook/gui/widgets/test-reflow.c +++ b/addressbook/gui/widgets/test-reflow.c @@ -41,6 +41,9 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi gnome_canvas_item_set( reflow, "height", (double) allocation->height, NULL ); + gnome_canvas_item_set( reflow, + "minimum_width", (double) allocation->width, + NULL ); gtk_object_get(GTK_OBJECT(reflow), "width", &width, NULL); @@ -114,6 +117,7 @@ int main( int argc, char *argv[] ) "x", (double) 0, "y", (double) 0, "height", (double) 100, + "minimum_width", (double) 100, NULL ); gtk_signal_connect( GTK_OBJECT( reflow ), "resize", GTK_SIGNAL_FUNC( resize ), -- cgit v1.2.3