[goocanvas/wip/murrayc/gtk4: 1/2] gkt4: demo: Adjust calls to gtk_box_pack_start().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/wip/murrayc/gtk4: 1/2] gkt4: demo: Adjust calls to gtk_box_pack_start().
- Date: Fri, 16 Dec 2016 09:03:51 +0000 (UTC)
commit ad83638f50364b7d137f48ad2ea50dd248af9e9b
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Dec 15 14:55:31 2016 +0100
gkt4: demo: Adjust calls to gtk_box_pack_start().
The last parameter (which was always 0) has been removed:
https://git.gnome.org/browse/gtk+/commit/gtk/gtkbox.c?id=f45dadadd00d892ba16dc081240987425bc32346
demo/demo-animation.c | 8 ++--
demo/demo-arrowhead.c | 4 +-
demo/demo-clipping.c | 2 +-
demo/demo-events.c | 4 +-
demo/demo-features.c | 4 +-
demo/demo-fifteen.c | 4 +-
demo/demo-focus.c | 4 +-
demo/demo-grabs.c | 4 +-
demo/demo-large-items.c | 10 +++---
demo/demo-paths.c | 7 ++--
demo/demo-scalability.c | 2 +-
demo/demo-table.c | 2 +-
demo/demo.c | 62 +++++++++++++++++++-------------------
demo/generic-position-demo.c | 4 +-
demo/mv-demo-animation.c | 8 ++--
demo/mv-demo-arrowhead.c | 4 +-
demo/mv-demo-clipping.c | 2 +-
demo/mv-demo-events.c | 5 +--
demo/mv-demo-features.c | 4 +-
demo/mv-demo-fifteen.c | 4 +-
demo/mv-demo-focus.c | 4 +-
demo/mv-demo-grabs.c | 4 +-
demo/mv-demo-paths.c | 6 ++--
demo/mv-demo-scalability.c | 2 +-
demo/mv-demo-table.c | 2 +-
demo/mv-demo.c | 52 ++++++++++++++++----------------
demo/mv-generic-position-demo.c | 4 +-
demo/mv-table-demo.c | 8 ++--
demo/table-demo.c | 9 ++---
demo/units-demo.c | 8 ++--
demo/widgets-demo.c | 32 ++++++++++----------
31 files changed, 138 insertions(+), 141 deletions(-)
---
diff --git a/demo/demo-animation.c b/demo/demo-animation.c
index 3b21676..b0e419f 100644
--- a/demo/demo-animation.c
+++ b/demo/demo-animation.c
@@ -118,17 +118,17 @@ create_animation_page (void)
gtk_widget_show (vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
w = gtk_button_new_with_label("Start Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (start_animation_clicked),
NULL);
w = gtk_button_new_with_label("Stop Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (stop_animation_clicked),
NULL);
@@ -138,7 +138,7 @@ create_animation_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
diff --git a/demo/demo-arrowhead.c b/demo/demo-arrowhead.c
index 148d7c7..2447cea 100644
--- a/demo/demo-arrowhead.c
+++ b/demo/demo-arrowhead.c
@@ -420,12 +420,12 @@ create_canvas_arrowhead (void)
w = gtk_label_new ("This demo allows you to edit arrowhead shapes. Drag the little boxes\n"
"to change the shape of the line and its arrowhead. You can see the\n"
"arrows at their normal scale on the right hand side of the window.");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/demo-clipping.c b/demo/demo-clipping.c
index 730e5e6..2219a5c 100644
--- a/demo/demo-clipping.c
+++ b/demo/demo-clipping.c
@@ -145,7 +145,7 @@ create_clipping_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
diff --git a/demo/demo-events.c b/demo/demo-events.c
index 3714c44..ab954d7 100644
--- a/demo/demo-events.c
+++ b/demo/demo-events.c
@@ -136,14 +136,14 @@ create_events_page (void)
/* Instructions */
label = gtk_label_new ("Move the mouse over the items to check they receive the right motion events.\nThe
first 2 items in each group are 1) invisible and 2) visible but unpainted.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
/* Frame and canvas */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/demo-features.c b/demo/demo-features.c
index d738df4..7e1ef9b 100644
--- a/demo/demo-features.c
+++ b/demo/demo-features.c
@@ -58,14 +58,14 @@ create_canvas_features (void)
/* Instructions */
w = gtk_label_new ("Reparent test: click on the items to switch them between parents");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
/* Frame and canvas */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/demo-fifteen.c b/demo/demo-fifteen.c
index 3c68deb..5590cce 100644
--- a/demo/demo-fifteen.c
+++ b/demo/demo-fifteen.c
@@ -248,7 +248,7 @@ create_canvas_fifteen (void)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
gtk_widget_show (frame);
g_object_set (frame,
@@ -317,7 +317,7 @@ create_canvas_fifteen (void)
/* Scramble button */
button = gtk_button_new_with_label ("Scramble");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE);
g_object_set_data (G_OBJECT (button), "board", board);
g_signal_connect (button, "clicked",
G_CALLBACK (scramble),
diff --git a/demo/demo-focus.c b/demo/demo-focus.c
index b46bb3d..3b8a3e4 100644
--- a/demo/demo-focus.c
+++ b/demo/demo-focus.c
@@ -143,14 +143,14 @@ create_focus_page (void)
gtk_widget_show (vbox);
label = gtk_label_new ("Use Tab, Shift+Tab or the arrow keys to move the keyboard focus between the canvas
items.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_can_focus (canvas, TRUE);
diff --git a/demo/demo-grabs.c b/demo/demo-grabs.c
index 7c177b0..cfe11e0 100644
--- a/demo/demo-grabs.c
+++ b/demo/demo-grabs.c
@@ -404,14 +404,14 @@ create_grabs_page (void)
gtk_widget_show (vbox);
label = gtk_label_new ("Move the mouse over the widgets and canvas items on the right to see what events
they receive.\nClick buttons to start explicit or implicit pointer grabs and see what events they receive
now.\n(They should all receive the same events.)");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
grid = gtk_grid_new ();
gtk_container_set_border_width (GTK_CONTAINER (grid), 12);
gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
- gtk_box_pack_start (GTK_BOX (vbox), grid, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), grid, FALSE, FALSE);
g_object_set (grid, "halign", GTK_ALIGN_CENTER, NULL);
gtk_widget_show (grid);
diff --git a/demo/demo-large-items.c b/demo/demo-large-items.c
index 5c01d74..194e807 100644
--- a/demo/demo-large-items.c
+++ b/demo/demo-large-items.c
@@ -75,18 +75,18 @@ create_large_items_page (void)
CANVAS_RIGHT, CANVAS_BOTTOM, MAX_ZOOM);
w = gtk_label_new (text);
g_free (text);
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
/* Create the canvas. */
canvas = goo_canvas_new ();
@@ -140,7 +140,7 @@ create_large_items_page (void)
/* Zoom */
w = gtk_label_new ("Zoom:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 10.00, 0.05, 0.50, 0.50));
@@ -149,7 +149,7 @@ create_large_items_page (void)
G_CALLBACK (zoom_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
return vbox;
diff --git a/demo/demo-paths.c b/demo/demo-paths.c
index acd08ef..434ca71 100644
--- a/demo/demo-paths.c
+++ b/demo/demo-paths.c
@@ -150,18 +150,17 @@ create_paths_page (void)
GtkWidget *vbox, *hbox, *w, *scrolled_win, *canvas;
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
- gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
gtk_widget_show (vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
@@ -172,7 +171,7 @@ create_paths_page (void)
setup_canvas (canvas);
w = gtk_button_new_with_label ("Move Path");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (move_path_clicked), canvas);
diff --git a/demo/demo-scalability.c b/demo/demo-scalability.c
index 383962d..672be72 100644
--- a/demo/demo-scalability.c
+++ b/demo/demo-scalability.c
@@ -51,7 +51,7 @@ create_canvas_scalability (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
gtk_container_add (GTK_CONTAINER (scrolled_win), canvas);
diff --git a/demo/demo-table.c b/demo/demo-table.c
index 968d874..c4609f3 100644
--- a/demo/demo-table.c
+++ b/demo/demo-table.c
@@ -388,7 +388,7 @@ create_table_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
diff --git a/demo/demo.c b/demo/demo.c
index e5bae6f..1203184 100644
--- a/demo/demo.c
+++ b/demo/demo.c
@@ -478,11 +478,11 @@ create_canvas_primitives ()
gtk_widget_show (vbox);
w = gtk_label_new ("Drag an item with button 1. Click button 2 on an item to lower it, or button 3
to raise it.");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
/* Create the canvas */
@@ -503,7 +503,7 @@ create_canvas_primitives ()
/* Scale */
w = gtk_label_new ("Scale:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 50.00, 0.05, 0.50, 0.50));
@@ -512,12 +512,12 @@ create_canvas_primitives ()
G_CALLBACK (zoom_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_label_new ("Scale X:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 50.00, 0.05, 0.50, 0.50));
@@ -526,12 +526,12 @@ create_canvas_primitives ()
G_CALLBACK (zoom_x_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_label_new ("Scale Y:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 50.00, 0.05, 0.50, 0.50));
@@ -540,18 +540,18 @@ create_canvas_primitives ()
G_CALLBACK (zoom_y_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
/* Center: */
w = gtk_check_button_new_with_label("Center scroll region");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
/*gtk_widget_show (w);*/
g_signal_connect (w, "toggled",
G_CALLBACK (center_toggled),
@@ -560,7 +560,7 @@ create_canvas_primitives ()
/* Move Ellipse */
w = gtk_button_new_with_label("Move Ellipse");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (move_ellipse_clicked),
@@ -569,7 +569,7 @@ create_canvas_primitives ()
/* Animate Ellipse */
w = gtk_button_new_with_label("Animate Ellipse");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (animate_ellipse_clicked),
@@ -578,7 +578,7 @@ create_canvas_primitives ()
/* Stop Animation */
w = gtk_button_new_with_label("Stop Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (stop_animation_clicked),
@@ -589,7 +589,7 @@ create_canvas_primitives ()
/* Create PDF */
w = gtk_button_new_with_label("Write PDF");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (write_pdf_clicked),
@@ -597,38 +597,38 @@ create_canvas_primitives ()
#endif
w = gtk_button_new_with_label("Change Bounds");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (change_bounds_clicked),
canvas);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
/* Scroll to */
w = gtk_label_new ("Scroll To:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_button_new_with_label("50,50");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_50_50_clicked),
canvas);
w = gtk_button_new_with_label("250,250");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_250_250_clicked),
canvas);
w = gtk_button_new_with_label("500,500");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_500_500_clicked),
@@ -637,12 +637,12 @@ create_canvas_primitives ()
/* Scroll anchor */
w = gtk_label_new ("Anchor:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_radio_button_new_with_label (group, "NW");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -652,7 +652,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "N");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -662,7 +662,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "NE");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -672,7 +672,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "W");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -682,7 +682,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "C");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -692,7 +692,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "E");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -702,7 +702,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "SW");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -712,7 +712,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "S");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -722,7 +722,7 @@ create_canvas_primitives ()
w = gtk_radio_button_new_with_label (group, "SE");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -735,7 +735,7 @@ create_canvas_primitives ()
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
gtk_widget_show (canvas);
gtk_container_add (GTK_CONTAINER (scrolled_win), canvas);
diff --git a/demo/generic-position-demo.c b/demo/generic-position-demo.c
index 3fda125..ee59bfd 100644
--- a/demo/generic-position-demo.c
+++ b/demo/generic-position-demo.c
@@ -192,7 +192,7 @@ main (int argc, char *argv[])
label = gtk_label_new ("Use Ctrl+Left Click to move items or Ctrl+Right Click to resize items");
g_object_set (label, "halign", GTK_ALIGN_START, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
/* Create top canvas. */
@@ -200,7 +200,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
g_object_set (G_OBJECT (canvas), "integer-layout", TRUE, NULL);
diff --git a/demo/mv-demo-animation.c b/demo/mv-demo-animation.c
index 5cffa83..6693751 100644
--- a/demo/mv-demo-animation.c
+++ b/demo/mv-demo-animation.c
@@ -117,17 +117,17 @@ create_animation_page (void)
gtk_widget_show (vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
w = gtk_button_new_with_label("Start Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (start_animation_clicked),
NULL);
w = gtk_button_new_with_label("Stop Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (stop_animation_clicked),
NULL);
@@ -137,7 +137,7 @@ create_animation_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
diff --git a/demo/mv-demo-arrowhead.c b/demo/mv-demo-arrowhead.c
index ceed936..7b37774 100644
--- a/demo/mv-demo-arrowhead.c
+++ b/demo/mv-demo-arrowhead.c
@@ -435,12 +435,12 @@ create_canvas_arrowhead (void)
w = gtk_label_new ("This demo allows you to edit arrowhead shapes. Drag the little boxes\n"
"to change the shape of the line and its arrowhead. You can see the\n"
"arrows at their normal scale on the right hand side of the window.");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/mv-demo-clipping.c b/demo/mv-demo-clipping.c
index 9772305..2d376d4 100644
--- a/demo/mv-demo-clipping.c
+++ b/demo/mv-demo-clipping.c
@@ -159,7 +159,7 @@ create_clipping_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
diff --git a/demo/mv-demo-events.c b/demo/mv-demo-events.c
index 6eeac36..9fc71c1 100644
--- a/demo/mv-demo-events.c
+++ b/demo/mv-demo-events.c
@@ -132,20 +132,19 @@ create_events_page (void)
GooCanvasItemModel *root;
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
- gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
gtk_widget_show (vbox);
/* Instructions */
label = gtk_label_new ("Move the mouse over the items to check they receive the right motion events.\nThe
first 2 items in each group are 1) invisible and 2) visible but unpainted.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
/* Frame and canvas */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/mv-demo-features.c b/demo/mv-demo-features.c
index 221536b..2ea90c0 100644
--- a/demo/mv-demo-features.c
+++ b/demo/mv-demo-features.c
@@ -65,14 +65,14 @@ create_canvas_features (void)
/* Instructions */
w = gtk_label_new ("Reparent test: click on the items to switch them between parents");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
/* Frame and canvas */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
gtk_widget_show (frame);
g_object_set (frame,
diff --git a/demo/mv-demo-fifteen.c b/demo/mv-demo-fifteen.c
index bbc5047..1bc0d77 100644
--- a/demo/mv-demo-fifteen.c
+++ b/demo/mv-demo-fifteen.c
@@ -259,7 +259,7 @@ create_canvas_fifteen (void)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
gtk_widget_show (frame);
g_object_set (frame,
@@ -326,7 +326,7 @@ create_canvas_fifteen (void)
/* Scramble button */
button = gtk_button_new_with_label ("Scramble");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE);
g_object_set_data (G_OBJECT (button), "board", board);
g_signal_connect (button, "clicked",
G_CALLBACK (scramble),
diff --git a/demo/mv-demo-focus.c b/demo/mv-demo-focus.c
index b15d450..05ad8c9 100644
--- a/demo/mv-demo-focus.c
+++ b/demo/mv-demo-focus.c
@@ -158,14 +158,14 @@ create_focus_page (void)
gtk_widget_show (vbox);
label = gtk_label_new ("Use Tab, Shift+Tab or the arrow keys to move the keyboard focus between the canvas
items.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_can_focus (canvas, TRUE);
diff --git a/demo/mv-demo-grabs.c b/demo/mv-demo-grabs.c
index 5817528..6132c5b 100644
--- a/demo/mv-demo-grabs.c
+++ b/demo/mv-demo-grabs.c
@@ -416,14 +416,14 @@ create_grabs_page (void)
gtk_widget_show (vbox);
label = gtk_label_new ("Move the mouse over the widgets and canvas items on the right to see what events
they receive.\nClick buttons to start explicit or implicit pointer grabs and see what events they receive
now.\n(They should all receive the same events.)");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
grid = gtk_grid_new ();
gtk_container_set_border_width (GTK_CONTAINER (grid), 12);
gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
- gtk_box_pack_start (GTK_BOX (vbox), grid, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), grid, FALSE, FALSE);
g_object_set (grid, "halign", GTK_ALIGN_CENTER, NULL);
gtk_widget_show (grid);
diff --git a/demo/mv-demo-paths.c b/demo/mv-demo-paths.c
index ad40397..9800b22 100644
--- a/demo/mv-demo-paths.c
+++ b/demo/mv-demo-paths.c
@@ -133,14 +133,14 @@ create_paths_page (void)
gtk_widget_show (vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 450);
@@ -153,7 +153,7 @@ create_paths_page (void)
g_object_unref (root);
w = gtk_button_new_with_label ("Move Path");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (move_path_clicked), canvas);
diff --git a/demo/mv-demo-scalability.c b/demo/mv-demo-scalability.c
index 17b5577..fd5c9d1 100644
--- a/demo/mv-demo-scalability.c
+++ b/demo/mv-demo-scalability.c
@@ -52,7 +52,7 @@ create_canvas_scalability (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
gtk_container_add (GTK_CONTAINER (scrolled_win), canvas);
diff --git a/demo/mv-demo-table.c b/demo/mv-demo-table.c
index b6e0b4c..17149d2 100644
--- a/demo/mv-demo-table.c
+++ b/demo/mv-demo-table.c
@@ -391,7 +391,7 @@ create_table_page (void)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = (GooCanvas*) goo_canvas_new ();
gtk_widget_set_size_request ((GtkWidget*) canvas, 600, 450);
diff --git a/demo/mv-demo.c b/demo/mv-demo.c
index c733a61..2f46ddd 100644
--- a/demo/mv-demo.c
+++ b/demo/mv-demo.c
@@ -402,11 +402,11 @@ create_canvas_primitives (GooCanvasItemModel *model,
gtk_widget_show (vbox);
w = gtk_label_new ("Drag an item with button 1. Click button 2 on an item to lower it, or button 3
to raise it.");
- gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE);
gtk_widget_show (w);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
/* Create the canvas */
@@ -430,7 +430,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Zoom */
w = gtk_label_new ("Zoom:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 50.00, 0.05, 0.50, 0.50));
@@ -439,13 +439,13 @@ create_canvas_primitives (GooCanvasItemModel *model,
G_CALLBACK (zoom_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
/* Center: */
w = gtk_check_button_new_with_label("Center scroll region");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
/*gtk_widget_show (w);*/
g_signal_connect (w, "toggled",
G_CALLBACK (center_toggled),
@@ -454,7 +454,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Move Ellipse */
w = gtk_button_new_with_label("Move Ellipse");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (move_ellipse_clicked),
@@ -463,7 +463,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Animate Ellipse */
w = gtk_button_new_with_label("Animate Ellipse");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (animate_ellipse_clicked),
@@ -472,7 +472,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Stop Animation */
w = gtk_button_new_with_label("Stop Animation");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (stop_animation_clicked),
@@ -483,7 +483,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Create PDF */
w = gtk_button_new_with_label("Write PDF");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (write_pdf_clicked),
@@ -491,38 +491,38 @@ create_canvas_primitives (GooCanvasItemModel *model,
#endif
w = gtk_button_new_with_label("Change Bounds");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (change_bounds_clicked),
canvas);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
/* Scroll to */
w = gtk_label_new ("Scroll To:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_button_new_with_label("50,50");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_50_50_clicked),
canvas);
w = gtk_button_new_with_label("250,250");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_250_250_clicked),
canvas);
w = gtk_button_new_with_label("500,500");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked",
G_CALLBACK (scroll_to_500_500_clicked),
@@ -531,12 +531,12 @@ create_canvas_primitives (GooCanvasItemModel *model,
/* Scroll anchor */
w = gtk_label_new ("Anchor:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
w = gtk_radio_button_new_with_label (group, "NW");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -546,7 +546,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "N");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -556,7 +556,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "NE");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -566,7 +566,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "W");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -576,7 +576,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "C");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -586,7 +586,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "E");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -596,7 +596,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "SW");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -606,7 +606,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "S");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -616,7 +616,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
w = gtk_radio_button_new_with_label (group, "SE");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (w));
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "toggled",
G_CALLBACK (anchor_toggled),
@@ -629,7 +629,7 @@ create_canvas_primitives (GooCanvasItemModel *model,
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
gtk_widget_show (canvas);
gtk_container_add (GTK_CONTAINER (scrolled_win), canvas);
diff --git a/demo/mv-generic-position-demo.c b/demo/mv-generic-position-demo.c
index fefc30f..4243523 100644
--- a/demo/mv-generic-position-demo.c
+++ b/demo/mv-generic-position-demo.c
@@ -193,7 +193,7 @@ create_window (GooCanvasItemModel *model)
label = gtk_label_new ("Use Ctrl+Left Click to move items or Ctrl+Right Click to resize items");
g_object_set (label, "halign", GTK_ALIGN_START, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
gtk_widget_show (label);
/* Create top canvas. */
@@ -201,7 +201,7 @@ create_window (GooCanvasItemModel *model)
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
g_object_set (G_OBJECT (canvas), "integer-layout", TRUE, NULL);
diff --git a/demo/mv-table-demo.c b/demo/mv-table-demo.c
index c4da473..554bd02 100644
--- a/demo/mv-table-demo.c
+++ b/demo/mv-table-demo.c
@@ -236,14 +236,14 @@ main (int argc, char *argv[])
label = gtk_label_new ("Normal Layout");
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
/* Create top canvas. */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 250);
@@ -256,14 +256,14 @@ main (int argc, char *argv[])
label = gtk_label_new ("Integer Layout");
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
/* Create bottom canvas. */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
g_object_set (canvas,
diff --git a/demo/table-demo.c b/demo/table-demo.c
index 535b5db..7da2b35 100644
--- a/demo/table-demo.c
+++ b/demo/table-demo.c
@@ -225,20 +225,19 @@ main (int argc, char *argv[])
NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
- gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new ("Normal Layout");
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
/* Create top canvas. */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_size_request (canvas, 600, 250);
@@ -251,14 +250,14 @@ main (int argc, char *argv[])
label = gtk_label_new ("Integer Layout");
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
/* Create bottom canvas. */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
g_object_set (canvas,
diff --git a/demo/units-demo.c b/demo/units-demo.c
index fb2f8d0..3942033 100644
--- a/demo/units-demo.c
+++ b/demo/units-demo.c
@@ -105,13 +105,13 @@ create_canvas (GtkUnit units,
gtk_widget_show (vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
canvas = goo_canvas_new ();
w = gtk_label_new ("Zoom:");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.00, 0.05, 100.00, 0.05, 0.50, 0.50));
@@ -120,11 +120,11 @@ create_canvas (GtkUnit units,
G_CALLBACK (zoom_changed),
canvas);
gtk_widget_set_size_request (w, 50, -1);
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
gtk_widget_show (scrolled_win);
/* Create the canvas. */
diff --git a/demo/widgets-demo.c b/demo/widgets-demo.c
index 1c2fb0a..99923c2 100644
--- a/demo/widgets-demo.c
+++ b/demo/widgets-demo.c
@@ -287,60 +287,60 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (window), vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
w = gtk_button_new_with_label ("Add Widget");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (add_widget_clicked), NULL);
w = gtk_button_new_with_label ("Remove Widget");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (remove_widget_clicked), NULL);
w = gtk_button_new_with_label ("Move Widget");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (move_widget_clicked), NULL);
w = gtk_button_new_with_label ("Change Anchor");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (change_anchor_clicked), NULL);
w = gtk_button_new_with_label ("Change Widget");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (change_widget_clicked), NULL);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
gtk_widget_show (hbox);
w = gtk_button_new_with_label ("Hide Canvas");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (hide_canvas_clicked), NULL);
w = gtk_button_new_with_label ("Show Canvas");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (show_canvas_clicked), NULL);
w = gtk_button_new_with_label ("Hide Item");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (hide_item_clicked), NULL);
w = gtk_button_new_with_label ("Show Item");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (show_item_clicked), NULL);
w = gtk_button_new_with_label ("Change Transform");
- gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), w, FALSE, FALSE);
gtk_widget_show (w);
g_signal_connect (w, "clicked", G_CALLBACK (change_transform_clicked), NULL);
@@ -348,7 +348,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_IN);
gtk_widget_show (scrolled_win);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE);
canvas = goo_canvas_new ();
gtk_widget_set_can_focus (canvas, TRUE);
@@ -398,15 +398,15 @@ main (int argc, char *argv[])
entry = gtk_entry_new ();
gtk_widget_show (entry);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE);
entry = gtk_entry_new ();
gtk_widget_show (entry);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE);
entry = gtk_entry_new ();
gtk_widget_show (entry);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE);
witem = goo_canvas_widget_new (root, vbox, 50, 600, -1, -1, NULL);
g_object_set_data (G_OBJECT (witem), "id", "vbox");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]