*/
#include <config.h>
-#include "gtkalias.h"
#include "gtkscrollbar.h"
#include "gtkintl.h"
+#include "gtkprivate.h"
+#include "gtkalias.h"
static void gtk_scrollbar_class_init (GtkScrollbarClass *klass);
static void gtk_scrollbar_init (GtkScrollbar *scrollbar);
};
scrollbar_type =
- g_type_register_static (GTK_TYPE_RANGE, "GtkScrollbar",
+ g_type_register_static (GTK_TYPE_RANGE, I_("GtkScrollbar"),
&scrollbar_info, G_TYPE_FLAG_ABSTRACT);
}
0,
G_MAXINT,
21,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_boolean ("fixed-slider-length",
P_("Don't change slider size, just lock it to the minimum length"),
FALSE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_boolean ("has-backward-stepper",
P_("Display the standard backward arrow button"),
TRUE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_boolean ("has-forward-stepper",
P_("Display the standard forward arrow button"),
TRUE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_boolean ("has-secondary-backward-stepper",
P_("Display a second backward arrow button on the opposite end of the scrollbar"),
FALSE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_boolean ("has-secondary-forward-stepper",
P_("Display a secondary forward arrow button on the opposite end of the scrollbar"),
FALSE,
- G_PARAM_READABLE));
+ GTK_PARAM_READABLE));
}
static void
gtk_scrollbar_init (GtkScrollbar *scrollbar)
{
- GtkRange *range;
-
- range = GTK_RANGE (scrollbar);
}
static void
range = GTK_RANGE (widget);
gtk_widget_style_get (widget,
- "min_slider_length", &slider_length,
- "fixed_slider_length", &fixed_size,
- "has_backward_stepper", &has_a,
- "has_secondary_forward_stepper", &has_b,
- "has_secondary_backward_stepper", &has_c,
- "has_forward_stepper", &has_d,
+ "min-slider-length", &slider_length,
+ "fixed-slider-length", &fixed_size,
+ "has-backward-stepper", &has_a,
+ "has-secondary-forward-stepper", &has_b,
+ "has-secondary-backward-stepper", &has_c,
+ "has-forward-stepper", &has_d,
NULL);
range->min_slider_size = slider_length;
(* GTK_WIDGET_CLASS (parent_class)->style_set) (widget, previous);
}
+
+#define __GTK_SCROLLBAR_C__
+#include "gtkaliasdef.c"