#45 set_name on toolbar buttons to allow customization

Feature_suggestion
open
nobody
ROX-Filer (85)
5
2004-07-31
2004-07-31
Danny Su
No

In order to use .gtkrc-2.0 to customize the toolbar
icons, I think it'll be better if we add the following
code to toolbar.c:

}

g_object_set_data(G_OBJECT(button), "rox-tool",
tool);
+ gtk_widget_set_name (G_OBJECT(button),
"rox-filer");

if (filer_window)
{

This sets a name for the toolbar buttons, so that in
.gtkrc-2.0, I can change the icons without affecting
any other gtk applications.

This change allows me to use:
widget "*rox-filer*" style "normal"

instead of:
widget "*" style "normal"

Discussion


Log in to post a comment.