aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-minicard/test-reflow.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-01-27 15:25:26 +0800
committerChris Lahey <clahey@src.gnome.org>2000-01-27 15:25:26 +0800
commit074aff3059b7d127a7670c65ed3f1ae542b1b1cb (patch)
tree905eb6a41189897e8b435a40e31a401efc4dafe3 /widgets/e-minicard/test-reflow.c
parentbbcecaf6b73f9dd315823ffbbd9aa9574b18aa7d (diff)
downloadgsoc2013-evolution-074aff3059b7d127a7670c65ed3f1ae542b1b1cb.tar.gz
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/e-minicard/test-reflow.c')
-rw-r--r--widgets/e-minicard/test-reflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/e-minicard/test-reflow.c b/widgets/e-minicard/test-reflow.c
index 9efc2722dd..4533e0249d 100644
--- a/widgets/e-minicard/test-reflow.c
+++ b/widgets/e-minicard/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 ),