gpointing-device-settings r97 - trunk/modules



Author: hiikezoe
Date: Mon Mar  2 06:53:00 2009
New Revision: 97
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=97&view=rev

Log:
set initial widget sensitivity.

Modified:
   trunk/modules/gpds-trackpoint-ui.c

Modified: trunk/modules/gpds-trackpoint-ui.c
==============================================================================
--- trunk/modules/gpds-trackpoint-ui.c	(original)
+++ trunk/modules/gpds-trackpoint-ui.c	Mon Mar  2 06:53:00 2009
@@ -437,6 +437,7 @@
     gulong n_values;
     gboolean enable, dir_exists;
     const gchar *property_name;
+    gchar *box_name;
 
     property_name = gpds_track_point_xinput_get_name(property);
 
@@ -454,6 +455,10 @@
     object = gtk_builder_get_object(builder, object_name);
     gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(object), enable);
     g_free(values);
+
+    box_name = g_strconcat(object_name, "_box", NULL);
+    set_widget_sensitivity (builder, box_name, GTK_TOGGLE_BUTTON(object));
+    g_free(box_name);
 }
 
 static void



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