gpointing-device-settings r98 - in trunk: data modules
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r98 - in trunk: data modules
- Date: Mon, 2 Mar 2009 06:53:06 +0000 (UTC)
Author: hiikezoe
Date: Mon Mar 2 06:53:06 2009
New Revision: 98
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=98&view=rev
Log:
Use consistent name.
Modified:
trunk/data/touchpad.ui.in
trunk/modules/gpds-touchpad-ui.c
Modified: trunk/data/touchpad.ui.in
==============================================================================
--- trunk/data/touchpad.ui.in (original)
+++ trunk/data/touchpad.ui.in Mon Mar 2 06:53:06 2009
@@ -337,7 +337,7 @@
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
- <object class="GtkCheckButton" id="vertical_scroll_check">
+ <object class="GtkCheckButton" id="vertical_scrolling">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Enable _vertical scrolling</property>
@@ -355,7 +355,7 @@
</packing>
</child>
<child>
- <object class="GtkHBox" id="vertical_scroll_box">
+ <object class="GtkHBox" id="vertical_scrolling_box">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="homogeneous">False</property>
@@ -385,7 +385,7 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="vertical_scroll_scale">
+ <object class="GtkHScale" id="vertical_scrolling_scale">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="draw_value">False</property>
@@ -433,7 +433,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="horizontal_scroll_check">
+ <object class="GtkCheckButton" id="horizontal_scrolling">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Enable _horizontal scrolling</property>
@@ -451,7 +451,7 @@
</packing>
</child>
<child>
- <object class="GtkHBox" id="horizontal_scroll_box">
+ <object class="GtkHBox" id="horizontal_scrolling_box">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="homogeneous">False</property>
@@ -481,7 +481,7 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="horizontal_scroll_scale">
+ <object class="GtkHScale" id="horizontal_scrolling_scale">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="draw_value">False</property>
@@ -529,7 +529,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="circular_scroll_check">
+ <object class="GtkCheckButton" id="circular_scrolling">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Enable Ci_rcular scrolling</property>
@@ -547,7 +547,7 @@
</packing>
</child>
<child>
- <object class="GtkVBox" id="circular_scroll_box">
+ <object class="GtkVBox" id="circular_scrolling_box">
<property name="visible">False</property>
<property name="sensitive">False</property>
<property name="homogeneous">False</property>
Modified: trunk/modules/gpds-touchpad-ui.c
==============================================================================
--- trunk/modules/gpds-touchpad-ui.c (original)
+++ trunk/modules/gpds-touchpad-ui.c Mon Mar 2 06:53:06 2009
@@ -201,12 +201,12 @@
GObject *object;
gint properties[3];
- object = gtk_builder_get_object(builder, "vertical_scroll_check");
- set_widget_sensitivity(builder, "vertical_scroll_box", GTK_TOGGLE_BUTTON(object));
+ object = gtk_builder_get_object(builder, "vertical_scrolling");
+ set_widget_sensitivity(builder, "vertical_scrolling", GTK_TOGGLE_BUTTON(object));
properties[0] = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object)) ? 1 :0;
- object = gtk_builder_get_object(builder, "horizontal_scroll_check");
- set_widget_sensitivity(builder, "horizontal_scroll_box", GTK_TOGGLE_BUTTON(object));
+ object = gtk_builder_get_object(builder, "horizontal_scrolling");
+ set_widget_sensitivity(builder, "horizontal_scrolling", GTK_TOGGLE_BUTTON(object));
properties[1] = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object)) ? 1 :0;
properties[2] = 0;
@@ -251,10 +251,10 @@
GObject *object;
gint properties[2];
- object = gtk_builder_get_object(builder, "horizontal_scroll_scale");
+ object = gtk_builder_get_object(builder, "horizontal_scrolling_scale");
properties[0] = (gint)gtk_range_get_value(GTK_RANGE(object));
- object = gtk_builder_get_object(builder, "vertical_scroll_scale");
+ object = gtk_builder_get_object(builder, "vertical_scrolling_scale");
properties[1] = (gint)gtk_range_get_value(GTK_RANGE(object));
if (!gpds_xinput_set_int_properties(xinput,
@@ -321,7 +321,7 @@
}
static void
-cb_circular_scroll_check_toggled (GtkToggleButton *button, gpointer user_data)
+cb_circular_scrolling_toggled (GtkToggleButton *button, gpointer user_data)
{
GpdsTouchpadUI *ui = GPDS_TOUCHPAD_UI(user_data);
GtkBuilder *builder;
@@ -330,14 +330,14 @@
builder = gpds_ui_get_builder(GPDS_UI(user_data));
set_toggle_property(ui->xinput, button, GPDS_TOUCHPAD_CIRCULAR_SCROLLING);
- set_widget_sensitivity(builder, "circular_scroll_box", button);
+ set_widget_sensitivity(builder, "circular_scroling_box", button);
check = gtk_toggle_button_get_active(button);
gconf_client_set_bool(ui->gconf, GPDS_TOUCHPAD_CIRCULAR_SCROLLING_KEY, check, NULL);
}
static void
-cb_vertical_scroll_check_toggled (GtkToggleButton *button, gpointer user_data)
+cb_vertical_scrolling_toggled (GtkToggleButton *button, gpointer user_data)
{
GpdsTouchpadUI *ui = GPDS_TOUCHPAD_UI(user_data);
GtkBuilder *builder;
@@ -352,7 +352,7 @@
}
static void
-cb_horizontal_scroll_check_toggled (GtkToggleButton *button, gpointer user_data)
+cb_horizontal_scrolling_toggled (GtkToggleButton *button, gpointer user_data)
{
GpdsTouchpadUI *ui = GPDS_TOUCHPAD_UI(user_data);
GtkBuilder *builder;
@@ -367,7 +367,7 @@
}
static void
-cb_vertical_scroll_scale_value_changed (GtkRange *range, gpointer user_data)
+cb_vertical_scrolling_scale_value_changed (GtkRange *range, gpointer user_data)
{
GpdsTouchpadUI *ui = GPDS_TOUCHPAD_UI(user_data);
GtkBuilder *builder;
@@ -382,7 +382,7 @@
}
static void
-cb_horizontal_scroll_scale_value_changed (GtkRange *range, gpointer user_data)
+cb_horizontal_scrolling_scale_value_changed (GtkRange *range, gpointer user_data)
{
GpdsTouchpadUI *ui = GPDS_TOUCHPAD_UI(user_data);
GtkBuilder *builder;
@@ -491,11 +491,11 @@
CONNECT(tapping_time_scale, value_changed);
CONNECT(faster_tapping_check, toggled);
- CONNECT(circular_scroll_check, toggled);
- CONNECT(vertical_scroll_check, toggled);
- CONNECT(vertical_scroll_scale, value_changed);
- CONNECT(horizontal_scroll_check, toggled);
- CONNECT(horizontal_scroll_scale, value_changed);
+ CONNECT(circular_scrolling, toggled);
+ CONNECT(vertical_scrolling, toggled);
+ CONNECT(vertical_scrolling_scale, value_changed);
+ CONNECT(horizontal_scrolling, toggled);
+ CONNECT(horizontal_scrolling_scale, value_changed);
/* cirlular scrolling trigger */
CONNECT(trigger_top_toggle, button_press_event);
@@ -611,14 +611,14 @@
enable = gconf_client_get_bool(ui->gconf, GPDS_TOUCHPAD_VERTICAL_SCROLLING_KEY, NULL);
else
enable = (values[0] == 1);
- object = gtk_builder_get_object(builder, "vertical_scroll_check");
+ object = gtk_builder_get_object(builder, "vertical_scrolling");
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(object), enable);
if (dir_exists)
enable = gconf_client_get_bool(ui->gconf, GPDS_TOUCHPAD_HORIZONTAL_SCROLLING_KEY, NULL);
else
enable = (values[0] == 1);
- object = gtk_builder_get_object(builder, "horizontal_scroll_check");
+ object = gtk_builder_get_object(builder, "horizontal_scrolling");
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(object), enable);
g_free(values);
@@ -648,7 +648,7 @@
distance = gconf_client_get_int(ui->gconf,
GPDS_TOUCHPAD_VERTICAL_SCROLLING_DISTANCE_KEY,
&error);
- object = gtk_builder_get_object(builder, "vertical_scroll_scale");
+ object = gtk_builder_get_object(builder, "vertical_scrolling_scale");
gtk_range_set_value(GTK_RANGE(object), error ? values[0] : distance);
if (error)
g_clear_error(&error);
@@ -656,7 +656,7 @@
distance = gconf_client_get_int(ui->gconf,
GPDS_TOUCHPAD_HORIZONTAL_SCROLLING_DISTANCE_KEY,
&error);
- object = gtk_builder_get_object(builder, "horizontal_scroll_scale");
+ object = gtk_builder_get_object(builder, "horizontal_scrolling_scale");
gtk_range_set_value(GTK_RANGE(object), error ? values[1] : distance);
if (error)
g_clear_error(&error);
@@ -708,7 +708,7 @@
GPDS_TOUCHPAD_CIRCULAR_SCROLLING,
GPDS_TOUCHPAD_CIRCULAR_SCROLLING_KEY,
builder,
- "circular_scroll_check");
+ "circular_scrolling");
set_edge_scroll_property_from_preference(touchpad_ui, builder);
set_scroll_distance_property_from_preference(touchpad_ui, builder);
set_circular_scrolling_trigger_property_from_preference(touchpad_ui, builder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]