[gtk/wip/baedert/for-master] coloreditor: Scale h value to 360



commit a570b4fabf25a799d99eef0af6d59d3d8cb0a0b7
Author: Timm Bäder <mail baedert org>
Date:   Sat Feb 15 10:25:41 2020 +0100

    coloreditor: Scale h value to 360
    
    Fixes #1321

 gtk/gtkcoloreditor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index e4d610ec78..6f3ac11b6d 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -394,7 +394,7 @@ gtk_color_editor_init (GtkColorEditor *editor)
    * supported by template GtkBuilder xml (it would be possible to set this up in the xml
    * but require 4 separate callbacks and would be rather ugly).
    */
-  gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (editor->priv->h_entry), scaled_adjustment 
(editor->priv->h_adj, 100));
+  gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (editor->priv->h_entry), scaled_adjustment 
(editor->priv->h_adj, 360));
   gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (editor->priv->s_entry), scaled_adjustment 
(editor->priv->s_adj, 100));
   gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (editor->priv->v_entry), scaled_adjustment 
(editor->priv->v_adj, 100));
   gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (editor->priv->a_entry), scaled_adjustment 
(editor->priv->a_adj, 100));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]