[Xfce4-commits] <parole:master> Add marks to display-manipulation scales to make resetting to 0 easier

Simon Steinbeiss noreply at xfce.org
Fri Oct 11 11:51:48 CEST 2013


Updating branch refs/heads/master
         to 278101c8baad399ee572bcd96cd9d89a2ee9096e (commit)
       from 133a53a86c4d18e86e7fc0eda68b6f90f132e4f0 (commit)

commit 278101c8baad399ee572bcd96cd9d89a2ee9096e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Sep 3 15:09:09 2013 +0200

    Add marks to display-manipulation scales to make resetting to 0 easier

 src/parole-conf-dialog.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/parole-conf-dialog.c b/src/parole-conf-dialog.c
index 3fa5212..ed0741b 100644
--- a/src/parole-conf-dialog.c
+++ b/src/parole-conf-dialog.c
@@ -589,6 +589,10 @@ void parole_conf_dialog_open (ParoleConfDialog *self, GtkWidget *parent)
         gtk_range_set_range (GTK_RANGE (self->priv->contrast), -1000, 1000);
         gtk_range_set_range (GTK_RANGE (self->priv->saturation), -1000, 1000);
         gtk_range_set_range (GTK_RANGE (self->priv->hue), -1000, 1000);
+        gtk_scale_add_mark (GTK_SCALE (self->priv->brightness), 0, GTK_POS_BOTTOM, NULL);
+        gtk_scale_add_mark (GTK_SCALE (self->priv->contrast), 0, GTK_POS_BOTTOM, NULL);
+        gtk_scale_add_mark (GTK_SCALE (self->priv->saturation), 0, GTK_POS_BOTTOM, NULL);
+        gtk_scale_add_mark (GTK_SCALE (self->priv->hue), 0, GTK_POS_BOTTOM, NULL);
 
         g_object_get (G_OBJECT (self->priv->conf),
                       "brightness", &brightness_value,


More information about the Xfce4-commits mailing list