Commit 562e9e81 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

libgnome-panel: add css class to GpImageMenuItem

parent 97ff41d0
menuitem image {
.gp-image-menu-item > image {
min-height: 16px;
min-width: 16px;
}
menuitem image:dir(ltr) {
margin-right: 7px;
.gp-image-menu-item > image:dir(ltr) {
margin-right: 5px;
}
menuitem image:dir(rtl) {
margin-left: 7px;
.gp-image-menu-item > image:dir(rtl) {
margin-left: 5px;
}
panel-toplevel.left gp-applet > menubar > menuitem > image:dir(ltr) {
panel-toplevel.left gp-applet > menubar > .gp-image-menu-item > image:dir(ltr) {
margin-right: 0px;
margin-top: 7px;
margin-top: 5px;
}
panel-toplevel.left gp-applet > menubar > menuitem > image:dir(rtl) {
panel-toplevel.left gp-applet > menubar > .gp-image-menu-item > image:dir(rtl) {
margin-left: 0px;
margin-bottom: 7px;
margin-bottom: 5px;
}
panel-toplevel.right gp-applet > menubar > menuitem > image:dir(ltr) {
panel-toplevel.right gp-applet > menubar > .gp-image-menu-item > image:dir(ltr) {
margin-right: 0px;
margin-bottom: 7px;
margin-bottom: 5px;
}
panel-toplevel.right gp-applet > menubar > menuitem > image:dir(rtl) {
panel-toplevel.right gp-applet > menubar > .gp-image-menu-item > image:dir(rtl) {
margin-left: 0px;
margin-top: 7px;
margin-top: 5px;
}
......@@ -331,6 +331,10 @@ gp_image_menu_item_class_init (GpImageMenuItemClass *item_class)
static void
gp_image_menu_item_init (GpImageMenuItem *item)
{
GtkStyleContext *context;
context = gtk_widget_get_style_context (GTK_WIDGET (item));
gtk_style_context_add_class (context, "gp-image-menu-item");
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment