Gtk Theming LXPanel

Please post all general support questions for LXDE here.
Locked
truefusion
Posts: 2
Joined: Wed Nov 12, 2008 3:34 am

Gtk Theming LXPanel

Post by truefusion »

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?
PCMan
Posts: 85
Joined: Mon Oct 06, 2008 9:52 am

Re: Gtk Theming LXPanel

Post by PCMan »

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!
truefusion
Posts: 2
Joined: Wed Nov 12, 2008 3:34 am

Re: Gtk Theming LXPanel

Post by truefusion »

Done.

Should i assume the reason for placing it under bugs is so that it'll have higher priority over feature requests?
snkiz
Posts: 1
Joined: Fri Nov 14, 2008 2:01 am

Re: Gtk Theming LXPanel

Post by snkiz »

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
Locked