[goocanvas/wip/murrayc/gtk4] gtk4: demo: Remove use of gtk_container_set_border_width().



commit d0097530f0c5ab59bd74606276349574c1d51a49
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 15 14:50:41 2016 +0100

    gtk4: demo: Remove use of gtk_container_set_border_width().
    
    The commits in GTK+ that removes this API just removes all uses of it,
    without any replacement, which seems odd:
    https://git.gnome.org/browse/gtk+/commit/?id=4df6ddad54d2cb6ebfdcbf2b6fee35ec4fa760b9

 demo/demo-animation.c           |    1 -
 demo/demo-arrowhead.c           |    1 -
 demo/demo-clipping.c            |    1 -
 demo/demo-events.c              |    1 -
 demo/demo-features.c            |    1 -
 demo/demo-fifteen.c             |    1 -
 demo/demo-focus.c               |    1 -
 demo/demo-grabs.c               |    2 --
 demo/demo-large-items.c         |    1 -
 demo/demo-scalability.c         |    1 -
 demo/demo-table.c               |    1 -
 demo/demo.c                     |    1 -
 demo/generic-position-demo.c    |    1 -
 demo/mv-demo-animation.c        |    1 -
 demo/mv-demo-arrowhead.c        |    1 -
 demo/mv-demo-clipping.c         |    1 -
 demo/mv-demo-features.c         |    1 -
 demo/mv-demo-fifteen.c          |    1 -
 demo/mv-demo-focus.c            |    1 -
 demo/mv-demo-grabs.c            |    2 --
 demo/mv-demo-paths.c            |    1 -
 demo/mv-demo-scalability.c      |    1 -
 demo/mv-demo-table.c            |    1 -
 demo/mv-demo.c                  |    1 -
 demo/mv-generic-position-demo.c |    1 -
 demo/mv-table-demo.c            |    1 -
 demo/units-demo.c               |    1 -
 demo/widgets-demo.c             |    1 -
 28 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/demo/demo-animation.c b/demo/demo-animation.c
index 3b21676..d74c128 100644
--- a/demo/demo-animation.c
+++ b/demo/demo-animation.c
@@ -114,7 +114,6 @@ create_animation_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);
diff --git a/demo/demo-arrowhead.c b/demo/demo-arrowhead.c
index 148d7c7..00488e6 100644
--- a/demo/demo-arrowhead.c
+++ b/demo/demo-arrowhead.c
@@ -414,7 +414,6 @@ create_canvas_arrowhead (void)
        GooCanvasItem *root, *item;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        w = gtk_label_new ("This demo allows you to edit arrowhead shapes.  Drag the little boxes\n"
diff --git a/demo/demo-clipping.c b/demo/demo-clipping.c
index 730e5e6..404bac7 100644
--- a/demo/demo-clipping.c
+++ b/demo/demo-clipping.c
@@ -138,7 +138,6 @@ create_clipping_page (void)
   GtkWidget *vbox, *scrolled_win, *canvas;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   scrolled_win = gtk_scrolled_window_new (NULL, NULL);
diff --git a/demo/demo-events.c b/demo/demo-events.c
index 3714c44..adae8e3 100644
--- a/demo/demo-events.c
+++ b/demo/demo-events.c
@@ -130,7 +130,6 @@ create_events_page (void)
   GtkWidget *vbox, *frame, *label, *canvas;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   /* Instructions */
diff --git a/demo/demo-features.c b/demo/demo-features.c
index d738df4..939eb04 100644
--- a/demo/demo-features.c
+++ b/demo/demo-features.c
@@ -52,7 +52,6 @@ create_canvas_features (void)
        GooCanvasItem *group;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        /* Instructions */
diff --git a/demo/demo-fifteen.c b/demo/demo-fifteen.c
index 3c68deb..877dcde 100644
--- a/demo/demo-fifteen.c
+++ b/demo/demo-fifteen.c
@@ -243,7 +243,6 @@ create_canvas_fifteen (void)
        char buf[20];
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        frame = gtk_frame_new (NULL);
diff --git a/demo/demo-focus.c b/demo/demo-focus.c
index b46bb3d..fe2cafb 100644
--- a/demo/demo-focus.c
+++ b/demo/demo-focus.c
@@ -139,7 +139,6 @@ create_focus_page (void)
   GtkWidget *vbox, *label, *scrolled_win, *canvas;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   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.");
diff --git a/demo/demo-grabs.c b/demo/demo-grabs.c
index 7c177b0..55e86f5 100644
--- a/demo/demo-grabs.c
+++ b/demo/demo-grabs.c
@@ -400,7 +400,6 @@ create_grabs_page (void)
   GtkWidget *vbox, *grid, *label;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   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.)");
@@ -408,7 +407,6 @@ create_grabs_page (void)
   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);
diff --git a/demo/demo-large-items.c b/demo/demo-large-items.c
index 5c01d74..9f53486 100644
--- a/demo/demo-large-items.c
+++ b/demo/demo-large-items.c
@@ -67,7 +67,6 @@ create_large_items_page (void)
   gchar *text;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   text = g_strdup_printf ("This is a very large canvas, from (%i, %i) to (%i, %i).\nThe maximum zoom is %i. 
At this scale the canvas comes very close to the GDK window size limit (32-bit gint).\nThe items have been 
specially written to work around cairo's limits (transformed coords must be < +/- 32768).",
diff --git a/demo/demo-scalability.c b/demo/demo-scalability.c
index 383962d..d249816 100644
--- a/demo/demo-scalability.c
+++ b/demo/demo-scalability.c
@@ -22,7 +22,6 @@ create_canvas_scalability (void)
        int i, j, width, height;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        /* Create the canvas and board */
diff --git a/demo/demo-table.c b/demo/demo-table.c
index 968d874..325c602 100644
--- a/demo/demo-table.c
+++ b/demo/demo-table.c
@@ -381,7 +381,6 @@ create_table_page (void)
   GooCanvasItem *root, *table;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   scrolled_win = gtk_scrolled_window_new (NULL, NULL);
diff --git a/demo/demo.c b/demo/demo.c
index e5bae6f..1d55ed5 100644
--- a/demo/demo.c
+++ b/demo/demo.c
@@ -474,7 +474,6 @@ create_canvas_primitives ()
        GSList *group = NULL;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        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.");
diff --git a/demo/generic-position-demo.c b/demo/generic-position-demo.c
index 3fda125..61c0f4e 100644
--- a/demo/generic-position-demo.c
+++ b/demo/generic-position-demo.c
@@ -186,7 +186,6 @@ main (int argc, char *argv[])
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), 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);
 
diff --git a/demo/mv-demo-animation.c b/demo/mv-demo-animation.c
index 5cffa83..e9a2e87 100644
--- a/demo/mv-demo-animation.c
+++ b/demo/mv-demo-animation.c
@@ -113,7 +113,6 @@ create_animation_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);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
diff --git a/demo/mv-demo-arrowhead.c b/demo/mv-demo-arrowhead.c
index ceed936..0b97a24 100644
--- a/demo/mv-demo-arrowhead.c
+++ b/demo/mv-demo-arrowhead.c
@@ -429,7 +429,6 @@ create_canvas_arrowhead (void)
        GooCanvasItemModel *root, *item;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        w = gtk_label_new ("This demo allows you to edit arrowhead shapes.  Drag the little boxes\n"
diff --git a/demo/mv-demo-clipping.c b/demo/mv-demo-clipping.c
index 9772305..2e02e3e 100644
--- a/demo/mv-demo-clipping.c
+++ b/demo/mv-demo-clipping.c
@@ -152,7 +152,6 @@ create_clipping_page (void)
   GtkWidget *vbox, *scrolled_win, *canvas;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   scrolled_win = gtk_scrolled_window_new (NULL, NULL);
diff --git a/demo/mv-demo-features.c b/demo/mv-demo-features.c
index 221536b..e49fe20 100644
--- a/demo/mv-demo-features.c
+++ b/demo/mv-demo-features.c
@@ -59,7 +59,6 @@ create_canvas_features (void)
        GooCanvasItemModel *group;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        /* Instructions */
diff --git a/demo/mv-demo-fifteen.c b/demo/mv-demo-fifteen.c
index bbc5047..557ded9 100644
--- a/demo/mv-demo-fifteen.c
+++ b/demo/mv-demo-fifteen.c
@@ -254,7 +254,6 @@ create_canvas_fifteen (void)
        char buf[20];
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        frame = gtk_frame_new (NULL);
diff --git a/demo/mv-demo-focus.c b/demo/mv-demo-focus.c
index b15d450..e2e29c6 100644
--- a/demo/mv-demo-focus.c
+++ b/demo/mv-demo-focus.c
@@ -154,7 +154,6 @@ create_focus_page (void)
   GtkWidget *vbox, *label, *scrolled_win, *canvas;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   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.");
diff --git a/demo/mv-demo-grabs.c b/demo/mv-demo-grabs.c
index 5817528..a6a23e9 100644
--- a/demo/mv-demo-grabs.c
+++ b/demo/mv-demo-grabs.c
@@ -412,7 +412,6 @@ create_grabs_page (void)
   GtkWidget *vbox, *grid, *label;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   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.)");
@@ -420,7 +419,6 @@ create_grabs_page (void)
   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);
diff --git a/demo/mv-demo-paths.c b/demo/mv-demo-paths.c
index ad40397..73c3407 100644
--- a/demo/mv-demo-paths.c
+++ b/demo/mv-demo-paths.c
@@ -129,7 +129,6 @@ create_paths_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);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
diff --git a/demo/mv-demo-scalability.c b/demo/mv-demo-scalability.c
index 17b5577..7b08b25 100644
--- a/demo/mv-demo-scalability.c
+++ b/demo/mv-demo-scalability.c
@@ -22,7 +22,6 @@ create_canvas_scalability (void)
        int i, j, width, height;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        gtk_widget_show (vbox);
 
        /* Create the canvas and board */
diff --git a/demo/mv-demo-table.c b/demo/mv-demo-table.c
index b6e0b4c..61c675e 100644
--- a/demo/mv-demo-table.c
+++ b/demo/mv-demo-table.c
@@ -384,7 +384,6 @@ create_table_page (void)
   GooCanvasItemModel *root, *table;
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
   gtk_widget_show (vbox);
 
   scrolled_win = gtk_scrolled_window_new (NULL, NULL);
diff --git a/demo/mv-demo.c b/demo/mv-demo.c
index c733a61..42cd090 100644
--- a/demo/mv-demo.c
+++ b/demo/mv-demo.c
@@ -398,7 +398,6 @@ create_canvas_primitives (GooCanvasItemModel *model,
        GSList *group = NULL;
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
        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.");
diff --git a/demo/mv-generic-position-demo.c b/demo/mv-generic-position-demo.c
index fefc30f..25ca3dd 100644
--- a/demo/mv-generic-position-demo.c
+++ b/demo/mv-generic-position-demo.c
@@ -187,7 +187,6 @@ create_window (GooCanvasItemModel *model)
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), 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);
 
diff --git a/demo/mv-table-demo.c b/demo/mv-table-demo.c
index c4da473..6fdb34d 100644
--- a/demo/mv-table-demo.c
+++ b/demo/mv-table-demo.c
@@ -230,7 +230,6 @@ 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);
 
diff --git a/demo/units-demo.c b/demo/units-demo.c
index fb2f8d0..c3ddd52 100644
--- a/demo/units-demo.c
+++ b/demo/units-demo.c
@@ -101,7 +101,6 @@ create_canvas (GtkUnit         units,
   GtkAdjustment *adj;
 
   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);
diff --git a/demo/widgets-demo.c b/demo/widgets-demo.c
index 1c2fb0a..0cf735a 100644
--- a/demo/widgets-demo.c
+++ b/demo/widgets-demo.c
@@ -282,7 +282,6 @@ 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]