Is there any way to adjust the Scribble font? I think it should use a monospace font :-/
Thanks,
Steve
I think gtkcss only works on GTK3 and Linux Mint Debian Edition is still using GTK 2.24.20 Should I write a little patch to make it use Monospace in the code and submit it? (Is there interest to anyone else in such a patch?) Or is there another way short of editing the code that I'm missing?
Thanks,
Steve
On 01/31/2014 04:16 PM, Matthew Brush wrote:
On 14-01-31 03:04 PM, Steven Blatnick wrote:
Is there any way to adjust the Scribble font? I think it should use a monospace font :-/
I believe it's called "textview_scribble" and is a GtkTextView if you'd like to theme it using gtkrc/gtkcss.
Cheers, Matthew Brush
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
On 14-01-31 03:47 PM, Steven Blatnick wrote:
I think gtkcss only works on GTK3 and Linux Mint Debian Edition is still using GTK 2.24.20 Should I write a little patch to make it use Monospace in the code and submit it? (Is there interest to anyone else in such a patch?) Or is there another way short of editing the code that I'm missing?
You can use gtkrc files for gtk2, I think Geany even comes with it's own for some custom themed stuff. http://www.gtk.org/api/2.6/gtk/gtk-Resource-Files.html. I don't know much about it but it seems totally reasonable that you could match the Scribble textview either by gtkbuilder/glade name or class/hierarchy and change its font.
If it's not possible, probably the best approach would be to extend what's documented here: http://www.geany.org/manual/current/index.html#defining-own-widget-styles-us... for the relevant Scribble widget, so you can match it by GtkWidget name in the gtkrc file (see main.c:L282).
Cheers, Matthew Brush
On 1 February 2014 11:32, Matthew Brush mbrush@codebrainz.ca wrote:
On 14-01-31 03:47 PM, Steven Blatnick wrote:
I think gtkcss only works on GTK3 and Linux Mint Debian Edition is still using GTK 2.24.20 Should I write a little patch to make it use Monospace in the code and submit it? (Is there interest to anyone else in such a patch?) Or is there another way short of editing the code that I'm missing?
You can use gtkrc files for gtk2, I think Geany even comes with it's own for some custom themed stuff. http://www.gtk.org/api/2.6/ gtk/gtk-Resource-Files.html. I don't know much about it but it seems totally reasonable that you could match the Scribble textview either by gtkbuilder/glade name or class/hierarchy and change its font.
If it's not possible, probably the best approach would be to extend what's documented here: http://www.geany.org/manual/current/index.html#defining- own-widget-styles-using-gtkrc-2-0 for the relevant Scribble widget, so you can match it by GtkWidget name in the gtkrc file (see main.c:L282).
Something like:
style "sm" { font_name = "Monospace 12" } widget "*.textview_scribble" style "sm"
works
Cheers Lex
Cheers, Matthew Brush
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Thanks for the info guys. I'll have to try it out when I get a chance.
Thanks,
Steve