[tracker] tracker-preferences: Fixed run on battery/first time sensitive toggle
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-preferences: Fixed run on battery/first time sensitive toggle
- Date: Fri, 18 Sep 2009 10:37:45 +0000 (UTC)
commit eb47168a15b0fee3617a4220eb525c12b7971c33
Author: Martyn Russell <martyn lanedo com>
Date: Fri Sep 18 11:37:25 2009 +0100
tracker-preferences: Fixed run on battery/first time sensitive toggle
src/tracker-preferences/tracker-preferences.ui | 3 +--
src/tracker-preferences/tracker-preferences.vala | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-preferences.ui b/src/tracker-preferences/tracker-preferences.ui
index 387489f..bdfa85a 100644
--- a/src/tracker-preferences/tracker-preferences.ui
+++ b/src/tracker-preferences/tracker-preferences.ui
@@ -217,7 +217,6 @@
<object class="GtkCheckButton" id="checkbutton_enable_index_on_battery_first_time">
<property name="label" translatable="yes">Enable for _first time</property>
<property name="visible">True</property>
- <property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">This is an exception to the previous option.
@@ -1159,8 +1158,8 @@ Most commonly this is used to ignore directories like *~, *.o, *.la, etc</proper
</object>
<object class="GtkSizeGroup" id="sizegroup_indexing">
<widgets>
- <widget name="label_throttle"/>
<widget name="label_disk_space_limit"/>
+ <widget name="label_throttle"/>
</widgets>
</object>
</interface>
diff --git a/src/tracker-preferences/tracker-preferences.vala b/src/tracker-preferences/tracker-preferences.vala
index 180d4da..487f4e2 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -64,7 +64,7 @@ public static void checkbutton_enable_thumbnails_toggled_cb (CheckButton source)
public static void checkbutton_enable_index_on_battery_toggled_cb (CheckButton source) {
config.index_on_battery = source.active;
- checkbutton_enable_index_on_battery_first_time.set_sensitive (source.active);
+ checkbutton_enable_index_on_battery_first_time.set_sensitive (!source.active);
}
public static void checkbutton_enable_index_on_battery_first_time_toggled_cb (CheckButton source) {
@@ -314,7 +314,7 @@ static int main (string[] args) {
checkbutton_enable_index_on_battery = builder.get_object ("checkbutton_enable_index_on_battery") as CheckButton;
checkbutton_enable_index_on_battery_first_time = builder.get_object ("checkbutton_enable_index_on_battery_first_time") as CheckButton;
checkbutton_enable_index_on_battery.active = config.index_on_battery;
- checkbutton_enable_index_on_battery_first_time.set_sensitive (checkbutton_enable_index_on_battery.active);
+ checkbutton_enable_index_on_battery_first_time.set_sensitive (!checkbutton_enable_index_on_battery.active);
checkbutton_enable_index_on_battery_first_time.active = config.index_on_battery_first_time;
spinbutton_delay = builder.get_object ("spinbutton_delay") as SpinButton;
spinbutton_delay.set_increments (1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]