[gtk+/gtk-2-90] Don't use gtk_widget_set_uposition/size in testgtk



commit f10586f1ce873f1ae71e1e45253c0bb1eae70a34
Author: Christian Dywan <christian twotoasts de>
Date:   Tue Apr 13 18:32:10 2010 +0200

    Don't use gtk_widget_set_uposition/size in testgtk
    
    Use gtk_window_move and gtk_widget_set_size_request instead.

 tests/testgtk.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 9172b04..6842c6e 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2701,7 +2701,7 @@ create_rotated_label (GtkWidget *widget)
 			G_CALLBACK (on_angle_scale_changed), label);
       
       gtk_range_set_value (GTK_RANGE (hscale), 45);
-      gtk_widget_set_usize (hscale, 200, -1);
+      gtk_widget_set_size_request (hscale, 200, -1);
       gtk_box_pack_start (GTK_BOX (scale_hbox), hscale, TRUE, TRUE, 0);
     }
   
@@ -7658,7 +7658,7 @@ shape_motion (GtkWidget      *widget,
    * because I need absolute coordinates.
    */
   gdk_window_get_pointer (NULL, &xp, &yp, &mask);
-  gtk_widget_set_uposition (widget, xp  - p->x, yp  - p->y);
+  gtk_window_move (GTK_WINDOW (widget), xp  - p->x, yp  - p->y);
 }
 
 GtkWidget *
@@ -7723,7 +7723,7 @@ shape_create_icon (GdkScreen *screen,
   icon_pos = g_new (CursorOffset, 1);
   g_object_set_data (G_OBJECT (window), "cursor_offset", icon_pos);
 
-  gtk_widget_set_uposition (window, x, y);
+  gtk_window_move (GTK_WINDOW (window), x, y);
   gtk_widget_show (window);
   
   return window;
@@ -10737,7 +10737,7 @@ create_main_window (void)
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_widget_set_name (window, "main window");
-  gtk_widget_set_uposition (window, 50, 20);
+  gtk_window_move (GTK_WINDOW (window), 50, 20);
   gtk_window_set_default_size (GTK_WINDOW (window), -1, 400);
 
   geometry.min_width = -1;



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