Gtk Theming LXPanel
-
- Posts: 2
- Joined: Wed Nov 12, 2008 3:34 am
Gtk Theming LXPanel
I would like to make my own Gtk theme for LXDE, but i am unsure of how to modify the panel's theme using a Gtk theme. Is there a specific widget or (widget_)class i can use to affect the panel separate from other widgets?
Re: Gtk Theming LXPanel
Not sure about this, but I think it's difficult for now.
See src/panel.c:
836 p->topgwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
837 gtk_container_set_border_width(GTK_CONTAINER(p->topgwin), 0);
838 gtk_window_set_resizable(GTK_WINDOW(p->topgwin), FALSE);
839 gtk_window_set_wmclass(GTK_WINDOW(p->topgwin), "panel", "lxpanel");
840 gtk_window_set_title(GTK_WINDOW(p->topgwin), "panel");
It's class name is GtkWindow, so distinguishing this panel from other GtkWindow is difficult.
I think we need to add gtk_widget_set_name(); to give it a name for theming support.
Please add a bug report to the tracker. We can do that in the next release.
Thanks a lot!
See src/panel.c:
836 p->topgwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
837 gtk_container_set_border_width(GTK_CONTAINER(p->topgwin), 0);
838 gtk_window_set_resizable(GTK_WINDOW(p->topgwin), FALSE);
839 gtk_window_set_wmclass(GTK_WINDOW(p->topgwin), "panel", "lxpanel");
840 gtk_window_set_title(GTK_WINDOW(p->topgwin), "panel");
It's class name is GtkWindow, so distinguishing this panel from other GtkWindow is difficult.
I think we need to add gtk_widget_set_name(); to give it a name for theming support.
Please add a bug report to the tracker. We can do that in the next release.
Thanks a lot!
-
- Posts: 2
- Joined: Wed Nov 12, 2008 3:34 am
Re: Gtk Theming LXPanel
Done.
Should i assume the reason for placing it under bugs is so that it'll have higher priority over feature requests?
Should i assume the reason for placing it under bugs is so that it'll have higher priority over feature requests?
Re: Gtk Theming LXPanel
Where is the link to the bug? May I suggest it have the same naming spec as gnome-panel seeing as how that would make lxpanel compatible with existing themes