[gimp/gtk3-port: 296/336] spinscale: Fix styling



commit 6b2f9fca4eada94e2650d899bcb4501e61ed50c5
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 30 22:46:42 2016 +0200

    spinscale: Fix styling

 app/widgets/gimpspinscale.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index 34cafef..6cf6954 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -166,6 +166,8 @@ gimp_spin_scale_class_init (GimpSpinScaleClass *klass)
                                                         GIMP_PARAM_READWRITE));
 
   g_type_class_add_private (klass, sizeof (GimpSpinScalePrivate));
+
+  gtk_widget_class_set_css_name (widget_class, "spinbutton");
 }
 
 static void
@@ -181,7 +183,6 @@ gimp_spin_scale_init (GimpSpinScale *scale)
                          GDK_LEAVE_NOTIFY_MASK);
 
   gtk_entry_set_alignment (GTK_ENTRY (scale), 1.0);
-  gtk_entry_set_has_frame (GTK_ENTRY (scale), FALSE);
   gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (scale), TRUE);
 
   private->mnemonic_keyval = GDK_KEY_VoidSymbol;


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