diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-01-27 15:25:26 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-01-27 15:25:26 +0800 |
commit | 074aff3059b7d127a7670c65ed3f1ae542b1b1cb (patch) | |
tree | 905eb6a41189897e8b435a40e31a401efc4dafe3 /widgets/test-reflow.c | |
parent | bbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d (diff) | |
download | gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.gz gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.bz2 gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.lz gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.xz gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.zst gsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.zip |
Set the minimum_width.
2000-01-28 Christopher James Lahey <clahey@helixcode.com>
* 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
Diffstat (limited to 'widgets/test-reflow.c')
-rw-r--r-- | widgets/test-reflow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/test-reflow.c b/widgets/test-reflow.c index 9efc2722dd..4533e0249d 100644 --- a/widgets/test-reflow.c +++ b/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 ), |