[gtkglarea/jjardon/gtk3: 9/12] examples: Use gtk_widget_set_size_request() instead gtk_widget_set_usize()



commit c75dc947d7112571d41b6a02cf34213e4ef123a2
Author: Javier Jardón <javier jardon codethink co uk>
Date:   Thu Mar 20 13:31:34 2014 +0000

    examples: Use gtk_widget_set_size_request() instead  gtk_widget_set_usize()

 examples/gtkglarea_demo.c |    2 +-
 examples/shaders.c        |    2 +-
 examples/simple.c         |    2 +-
 examples/viewlw.c         |    2 +-
 examples/zktor.c          |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/examples/gtkglarea_demo.c b/examples/gtkglarea_demo.c
index 494b32c..db7a4fa 100644
--- a/examples/gtkglarea_demo.c
+++ b/examples/gtkglarea_demo.c
@@ -178,7 +178,7 @@ GtkWidget* create_glarea (void) {
   g_signal_connect (G_OBJECT(glarea), "destroy",
                     G_CALLBACK (glarea_destroy), NULL);
 
-  gtk_widget_set_usize(GTK_WIDGET(glarea), 256, 256);
+  gtk_widget_set_size_request(GTK_WIDGET(glarea), 256, 256);
 
   return (glarea);
 
diff --git a/examples/shaders.c b/examples/shaders.c
index b7d1dd8..e376ee3 100644
--- a/examples/shaders.c
+++ b/examples/shaders.c
@@ -257,7 +257,7 @@ GtkWidget* create_glarea (void) {
   g_signal_connect (G_OBJECT(glarea), "destroy",
                     G_CALLBACK(glarea_destroy), NULL);
 
-  gtk_widget_set_usize(GTK_WIDGET(glarea), 256, 256);
+  gtk_widget_set_size_request(GTK_WIDGET(glarea), 256, 256);
 
   return (glarea);
 
diff --git a/examples/simple.c b/examples/simple.c
index 852a78e..4c1081c 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
                    G_CALLBACK(init), NULL);
 
   /* set minimum size */
-  gtk_widget_set_usize(GTK_WIDGET(glarea), 100,100);
+  gtk_widget_set_size_request(GTK_WIDGET(glarea), 100,100);
 
   /* put glarea into window and show it all */
   gtk_container_add(GTK_CONTAINER(window),GTK_WIDGET(glarea));
diff --git a/examples/viewlw.c b/examples/viewlw.c
index 5dbb744..428ae35 100644
--- a/examples/viewlw.c
+++ b/examples/viewlw.c
@@ -335,7 +335,7 @@ gint show_lwobject(char const *lwobject_name)
   g_signal_connect (G_OBJECT(glarea), "destroy",
                     G_CALLBACK(glarea_destroy), NULL);
 
-  gtk_widget_set_usize(glarea, 200,200/VIEW_ASPECT); /* minimum size */
+  gtk_widget_set_size_request(glarea, 200,200/VIEW_ASPECT); /* minimum size */
 
   /* set up mesh info */
   info = (mesh_info*)g_malloc(sizeof(mesh_info));
diff --git a/examples/zktor.c b/examples/zktor.c
index b914baf..c313a0d 100644
--- a/examples/zktor.c
+++ b/examples/zktor.c
@@ -904,7 +904,7 @@ int main(int argc, char **argv)
                        GDK_KEY_PRESS_MASK|
                        GDK_KEY_RELEASE_MASK);
   /* set minimum size */
-  /*  gtk_widget_set_usize(GTK_WIDGET(glarea), 200,200); */
+  /*  gtk_widget_set_size_request(GTK_WIDGET(glarea), 200,200); */
   /* set default size */
   gtk_widget_set_size_request(glarea, 640, 400);
 


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