[gtkglarea] examples: Use gtk_widget_set_size_request() instead gtk_widget_set_usize()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea] examples: Use gtk_widget_set_size_request() instead gtk_widget_set_usize()
- Date: Thu, 20 Mar 2014 17:10:37 +0000 (UTC)
commit a20fc5f96172e5d6663f91a0c5a7c47b6dbc26fe
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 6d2cb93..ace4604 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 b6abfed..7b0169f 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 70dfd23..d225439 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -152,7 +152,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 aa35a4d..4f7c8c1 100644
--- a/examples/zktor.c
+++ b/examples/zktor.c
@@ -928,7 +928,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]