[cheese/videobalance] Use new scale marks to revert sliders to default
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Subject: [cheese/videobalance] Use new scale marks to revert sliders to default
- Date: Thu, 23 Apr 2009 13:47:24 -0400 (EDT)
commit b36b6c93c06c5cc7d48bc3b1aa3e7bf830e5b56c
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Thu Apr 23 19:38:55 2009 +0200
Use new scale marks to revert sliders to default
Add a sticky mark at the default value in the new sliders to make it
easier to reset the picture adjustments.
---
src/cheese-prefs-balance-scale.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/cheese-prefs-balance-scale.c b/src/cheese-prefs-balance-scale.c
index 235a184..036fc96 100644
--- a/src/cheese-prefs-balance-scale.c
+++ b/src/cheese-prefs-balance-scale.c
@@ -102,6 +102,8 @@ cheese_prefs_balance_scale_synchronize (CheesePrefsWidget *prefs_widget)
adj = GTK_ADJUSTMENT (gtk_adjustment_new (def, min, max, (max - min)/STEPS, 0.0, 0.0));
gtk_range_set_adjustment (GTK_RANGE (scale), adj);
+ gtk_scale_add_mark (GTK_SCALE (scale), def, GTK_POS_BOTTOM, NULL);
+
g_object_get (CHEESE_PREFS_WIDGET (self)->gconf, priv->gconf_key, &stored_value, NULL);
gtk_range_set_value (GTK_RANGE (scale), stored_value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]