[Geany] Gtk widget names and gtkrc

Damián Viano geany at xxxxx
Thu May 3 22:39:36 UTC 2007


On Thu, May 03, 2007 at 06:52:48PM +0200, Enrico Tröger wrote:
> Well, I'm not exactly sure how the widget names used in a .gtkrc-2.0
> file are matched with the real widgets in an application(I should read
> the docs to find out) but it is quite easy if you want to do it for all
> GTK applications at once:
> ------snip-------
> style "my_style"
> {
> 	font_name="Bitstream Very Sans 7"
> }
> widget_class "*" style "my_style"
> ------snip-------
> this is the first part of my .gtkrc-2.0.
> You could replace widget_class ... by
> widget "geany*" style "my_style" but as I told I'm not sure what we
> have to do within Geany to let GTK recognise the widgets. Any pointers
> are welcome.

	AIUI, you should use gtk_widget_set_name() for that for the main
GtkWindow, that should do it.

-- 
Damián Viano(Des)              ¯ ¯ - _           _ - ¯ ¯
GPG: 0x6EB95A6F                 Debian ¯-_GNU_-¯ Linux
Web: http://damianv.com.ar/               ¯-¯



More information about the Users mailing list