Styles
- From: "Tom van Klinken" <tom klinken com>
- To: <gtk-app-devel-list gnome org>
- Subject: Styles
- Date: Tue, 18 Feb 2003 14:01:54 +0100
Hi,
I want to set some style properties of a rangeclass (or just a v/h
scrollbar). I am now using (for a scrollbar on a scrolled window):
GtkWidget *scrwin;
GtkWidgetClass *rangeClass;
scrwin =gtk_scrolled_window_new(NULL,NULL);
rangeClass=GTK_WIDGET_CLASS(GTK_RANGE_GET_CLASS(GTK_RANGE(GTK_SCROLLED_W
INDOW(scrwin)->vscrollbar)));
gtk_widget_class_install_style_property
(rangeClass,g_param_spec_int
("slider_width",NULL,NULL,0,G_MAXINT,30,G_PARAM_READABLE));
gtk_widget_class_install_style_property
(rangeClass,g_param_spec_int
("stepper_size",NULL,NULL,0,G_MAXINT,30,G_PARAM_READABLE));
This works, but it generates errors ((TKSt:23545): Gtk-WARNING **:
gtkwidget.c:6073: class `GtkVScrollbar' already contains a style
property named `stepper-size). It might be possible with rc-files but I
want to have it hardcoded in my program. Is this possible?
Thanks in advance,
Tom van Klinken
tom klinken com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]