]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkspinbutton.c
Set top/bottom style classes on spinbutton buttons
[~andy/gtk] / gtk / gtkspinbutton.c
index 6be36aac6b299b07c84f91c05f3bfc1a826b7f64..8467efa999f23fe9dab94e5ed95b34c7a6773edd 100644 (file)
@@ -998,6 +998,10 @@ gtk_spin_button_draw_arrow (GtkSpinButton   *spin_button,
 
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
+  if (arrow_type == GTK_ARROW_UP)
+    gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOP);
+  else
+    gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
 
   priv = spin_button->priv;
   widget = GTK_WIDGET (spin_button);
@@ -2147,6 +2151,9 @@ gtk_spin_button_get_increments (GtkSpinButton *spin_button,
  * @max: maximum allowable value
  *
  * Sets the minimum and maximum allowable values for @spin_button.
+ *
+ * If the current value is outside this range, it will be adjusted
+ * to fit within the range, otherwise it will remain unchanged.
  */
 void
 gtk_spin_button_set_range (GtkSpinButton *spin_button,