[gtkglarea/jjardon/gtk3: 13/15] examples: replace deprecated gtk_vbox_new() function



commit 9a6e095b08ab3dc17e154b71cc79e81b6895f877
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Mar 24 18:32:55 2014 +0000

    examples: replace deprecated gtk_vbox_new() function

 examples/gtkglarea_demo.c |    2 +-
 examples/shaders.c        |    2 +-
 examples/zktor.c          |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/gtkglarea_demo.c b/examples/gtkglarea_demo.c
index ab67ba9..c0ee052 100644
--- a/examples/gtkglarea_demo.c
+++ b/examples/gtkglarea_demo.c
@@ -446,7 +446,7 @@ int main (int argc, char** argv) {
 
   /* Main widget container */
 
-  box_main = gtk_vbox_new (FALSE, 10);
+  box_main = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
 
   /* GTK GL Area */
 
diff --git a/examples/shaders.c b/examples/shaders.c
index 7ed7b48..684615a 100644
--- a/examples/shaders.c
+++ b/examples/shaders.c
@@ -418,7 +418,7 @@ int main (int argc, char** argv) {
 
   /* Main widget container */
 
-  box_main = gtk_vbox_new (FALSE, 10);
+  box_main = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
 
   /* GTK GL Area */
 
diff --git a/examples/zktor.c b/examples/zktor.c
index 9e87c43..8205d98 100644
--- a/examples/zktor.c
+++ b/examples/zktor.c
@@ -885,7 +885,7 @@ int main(int argc, char **argv)
                    G_CALLBACK(gtk_main_quit), NULL);
 
 
-  vbox = GTK_WIDGET(gtk_vbox_new(FALSE, 0));
+  vbox = GTK_WIDGET(gtk_box_new(GTK_ORIENTATION_VERTICAL, 0));
   gtk_container_set_border_width(GTK_CONTAINER(vbox), 10);
 
 


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