forked from AuroraMiddleware/gtk
stack switcher: Use an element name
This commit is contained in:
parent
ef1bc737b0
commit
ead35ee12f
@ -42,6 +42,10 @@
|
|||||||
* with the same stack widget.
|
* with the same stack widget.
|
||||||
*
|
*
|
||||||
* The GtkStackSwitcher widget was added in 3.10.
|
* The GtkStackSwitcher widget was added in 3.10.
|
||||||
|
*
|
||||||
|
* # CSS nodes
|
||||||
|
*
|
||||||
|
* GtkStackSwitcher has a single CSS node names stackswitcher.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct _GtkStackSwitcherPrivate GtkStackSwitcherPrivate;
|
typedef struct _GtkStackSwitcherPrivate GtkStackSwitcherPrivate;
|
||||||
@ -512,6 +516,7 @@ static void
|
|||||||
gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
|
gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (class);
|
GObjectClass *object_class = G_OBJECT_CLASS (class);
|
||||||
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
|
||||||
|
|
||||||
object_class->get_property = gtk_stack_switcher_get_property;
|
object_class->get_property = gtk_stack_switcher_get_property;
|
||||||
object_class->set_property = gtk_stack_switcher_set_property;
|
object_class->set_property = gtk_stack_switcher_set_property;
|
||||||
@ -526,6 +531,8 @@ gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
|
|||||||
GTK_TYPE_STACK,
|
GTK_TYPE_STACK,
|
||||||
GTK_PARAM_READWRITE |
|
GTK_PARAM_READWRITE |
|
||||||
G_PARAM_CONSTRUCT));
|
G_PARAM_CONSTRUCT));
|
||||||
|
|
||||||
|
gtk_widget_class_set_css_name (widget_class, "stackswitcher");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user