diff options
author | Tim Janik <timj@imendio.com> | 2006-05-10 14:02:20 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2006-05-10 14:02:20 +0000 |
commit | 4e8e3add5b7defdaa5d628f85079d9b64754d9c4 (patch) | |
tree | d8b9fc850067e03a2da335ab1bda4f8a12e26856 /gtk/gtkwidget.c | |
parent | 6942f71c31374fb894e3422fa984df42810aafcf (diff) | |
download | gtk+-4e8e3add5b7defdaa5d628f85079d9b64754d9c4.tar.gz |
applied unified patch for configurable scroll arrow sizes from bug #333632
Wed May 10 15:57:53 2006 Tim Janik <timj@imendio.com>
* applied unified patch for configurable scroll arrow sizes from
bug #333632 and bug #325282.
* gtk/gtkwidget.c (gtk_widget_class_init): added ::scroll-arrow-hlength
and ::scroll-arrow-vlength style properties. fixed upper limit for
::separator-width and ::separator-height to be MAXINT.
* gtk/gtkmenu.c: use GtkWidget::scroll-arrow-vlength to determine the
scroll arrow size, instead of using a hard coded constant.
* gtk/gtknotebook.c: use GtkWidget::scroll-arrow-vlength and
GtkWidget::scroll-arrow-hlength to determine scroll arrow sizes.
added GtkNotebook::arrow-spacing style property to configure the
spacing between scroll arrows.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index fe4eb4330e..620bb1e304 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -1513,14 +1513,26 @@ gtk_widget_class_init (GtkWidgetClass *klass) g_param_spec_int ("separator-width", P_("Separator Width"), P_("The width of separators if wide-separators is TRUE"), - 0, 64, 0, + 0, G_MAXINT, 0, GTK_PARAM_READABLE)); gtk_widget_class_install_style_property (klass, g_param_spec_int ("separator-height", P_("Separator Height"), P_("The height of separators if wide-separators is TRUE"), - 0, 64, 0, + 0, G_MAXINT, 0, + GTK_PARAM_READABLE)); + gtk_widget_class_install_style_property (klass, + g_param_spec_int ("scroll-arrow-hlength", + P_("Horizontal Scroll Arrow Length"), + P_("The length of horizontal scroll arrows"), + 1, G_MAXINT, 16, + GTK_PARAM_READABLE)); + gtk_widget_class_install_style_property (klass, + g_param_spec_int ("scroll-arrow-vlength", + P_("Vertical Scroll Arrow Length"), + P_("The length of vertical scroll arrows"), + 1, G_MAXINT, 16, GTK_PARAM_READABLE)); } |