summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2013-11-11 18:08:38 +0000
committerDavid King <amigadave@amigadave.com>2013-11-11 18:15:45 +0000
commita9ee541607d3c2edb5cd1f4e232fcf8a61505ac3 (patch)
tree643d6f04bf000d76341249f58bfb35329c9ef477 /data
parentc9e9e37d84d63c5a721313fb2ccde663d186b555 (diff)
Refactor GtkScale code in CheesePreferences
Move mark definitions into GtkBuilder. Convert GtkHScale to GtkScale with a horizontal orientation. Use g_settings_bind() to link GSettings values to UI elements, and remove unnecessary signal handlers.
Diffstat (limited to 'data')
-rw-r--r--data/cheese-prefs.ui27
1 files changed, 20 insertions, 7 deletions
diff --git a/data/cheese-prefs.ui b/data/cheese-prefs.ui
index 0f62c03f..5c0e537c 100644
--- a/data/cheese-prefs.ui
+++ b/data/cheese-prefs.ui
@@ -217,12 +217,16 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="brightness_scale">
+ <object class="GtkScale" id="brightness_scale">
+ <property name="orientation">horizontal</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="adjustment">brightness_adjustment</property>
<property name="draw_value">False</property>
+ <marks>
+ <mark value="0" position="bottom" />
+ </marks>
</object>
<packing>
<property name="left_attach">1</property>
@@ -232,12 +236,16 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="contrast_scale">
+ <object class="GtkScale" id="contrast_scale">
+ <property name="orientation">horizontal</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="adjustment">contrast_adjustment</property>
<property name="draw_value">False</property>
+ <marks>
+ <mark value="1" position="bottom" />
+ </marks>
</object>
<packing>
<property name="left_attach">1</property>
@@ -247,12 +255,16 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="saturation_scale">
+ <object class="GtkScale" id="saturation_scale">
+ <property name="orientation">horizontal</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="adjustment">saturation_adjustment</property>
<property name="draw_value">False</property>
+ <marks>
+ <mark value="1" position="bottom" />
+ </marks>
</object>
<packing>
<property name="left_attach">1</property>
@@ -262,12 +274,16 @@
</packing>
</child>
<child>
- <object class="GtkHScale" id="hue_scale">
+ <object class="GtkScale" id="hue_scale">
+ <property name="orientation">horizontal</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="adjustment">hue_adjustment</property>
<property name="draw_value">False</property>
+ <marks>
+ <mark value="0" position="bottom" />
+ </marks>
</object>
<packing>
<property name="left_attach">1</property>
@@ -365,7 +381,6 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <signal name="toggled" handler="cheese_preferences_dialog_on_countdown_toggle" swapped="no"/>
</object>
<packing>
<property name="left_attach">0</property>
@@ -385,7 +400,6 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <signal name="toggled" handler="cheese_preferences_dialog_on_flash_toggle" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
@@ -463,7 +477,6 @@
<property name="invisible_char">●</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">burst_count_adjustment</property>
- <signal name="value-changed" handler="cheese_preferences_dialog_on_burst_repeat_change" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>