[Gtkmm 3.4.2][CSS] Custom widget style properties
- From: Maggio Mago <dev maggio gmail com>
- To: gtkmm-list gnome org
- Subject: [Gtkmm 3.4.2][CSS] Custom widget style properties
- Date: Mon, 28 Oct 2013 04:26:54 +0100
However, when i add_class("RibbonGroup") to my widget the styles properties are not applied through the accessor class .myRibbonGroup
Where is my mistake please ?
The implementation :
------------------------------
RibbonGroup::RibbonGroup() : Glib::ObjectBase("RibbonGroup"), Gtk::Bin() {
GParamSpec *pspec = g_param_spec_enum("header_location" .... );
gtk_widget_class_install_style_property(GTK_WIDGET_CLASS(G_OBJECT_GET_CLASS(gobj())), pspec);
}
The CSS file :
-------------------
* {
-gtkmm__CustomObject_RibbonGroup-header-location: bottom;/* work */
}
gtkmm__CustomObject_RibbonGroup {
-gtkmm__CustomObject_mywidget-header-location: top;/* overwrite previous value*/
}
.myRibbonGroup {
-gtkmm__CustomObject_RibbonGroup-header-location: top;/* Work But is not prioritary */
background-color: red;/* the accesor seem rigth*/
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]