at-spi r1164 - in trunk: . test



Author: liyuan
Date: Tue Feb 24 06:09:09 2009
New Revision: 1164
URL: http://svn.gnome.org/viewvc/at-spi?rev=1164&view=rev

Log:
2009-02-24  Li Yuan  <li yuan sun com>

        * test/accessx-gui.c: (gui_exit), (basic_toggles_box),
        (repeat_keys_box), (mouse_keys_box), (timeout_box), (create_gui_x):
        Patch from Yue Wang. Bug #572188. Remove deprecated GTK+ symbols.


Modified:
   trunk/ChangeLog
   trunk/test/accessx-gui.c

Modified: trunk/test/accessx-gui.c
==============================================================================
--- trunk/test/accessx-gui.c	(original)
+++ trunk/test/accessx-gui.c	Tue Feb 24 06:09:09 2009
@@ -43,7 +43,7 @@
 static void
 gui_exit(GtkButton *notused, void *alsonotused)
 {
-  gtk_exit(0);
+  exit(0);
 }
 
 static void
@@ -250,7 +250,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   label = gtk_widget_new (GTK_TYPE_LABEL,
 			  "GtkLabel::label", "Delay (mS)",
@@ -325,7 +325,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   label = gtk_widget_new (GTK_TYPE_LABEL,
 			  "GtkLabel::label", "Delay (mS)",
@@ -400,7 +400,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (200.0, 40.0, 4000.0, 1.0, 10.0, 1.0 ));
   
@@ -417,7 +417,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
 
   vbox = gtk_widget_new (GTK_TYPE_VBOX,
 			 "GtkWidget::visible", TRUE,
@@ -488,7 +488,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (800.0, 200.0, 4000.0, 1.0, 10.0, 1.0 ));
   
@@ -505,7 +505,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (800.0, 200.0, 4000.0, 1.0, 10.0, 1.0 ));
   
@@ -522,7 +522,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (800.0, 200.0, 4000.0, 1.0, 10.0, 1.0 ));
   
@@ -611,7 +611,7 @@
 			    set_accessx_control_value, control,
 			    NULL);
   
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   
   label = gtk_widget_new (GTK_TYPE_LABEL,
 			  "GtkLabel::label", "AccessX Timeout (Min.)",
@@ -714,7 +714,7 @@
 			    set_accessx_control_value, controls[i],
 			    NULL);
 	  
-  gtk_widget_set_usize (GTK_WIDGET (range), 150, -1);
+  gtk_widget_set_size_request (GTK_WIDGET (range), 150, -1);
   gtk_widget_new (gtk_label_get_type(),
 		  "GtkWidget::parent", hbox,
 		  "GtkLabel::label", controls[i]->val_label,



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