RE: Changing fonts in Gnome applications



If you want to experiment with this, you could quite easily write a gtk
module.  In its initialisation function, it would set up an emission hook
on the realize signal.  In the emission hook, it could set up DnD actions
for changing the font, so every widget that is realised could be altered
in such a way.

Then alter gfontsel to support dragging fonts.  Now if you start a GTK
application with the --gtk-module=module command line option, and you
should be able to drag and drop to any of its widgets.

The module (just a shared library) should be trivial to write -- at most
two or three screenfulls, and would allow you to test this sort of
functionality in all your current applications.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Thu, 10 Jun 1999, Steve Homer wrote:

> I'm not sure exactly how this would be implemented, but I do think that if
> we are going to change an attribute (font, colour, gtktheme, wm theme
> etc...) we should be able to do it by dnd. For example fonts and colours
> from dialogs, themes from files. I'm sure there are a lot more things like
> this when you get down to it, they are all fairly trivial in themselves (not
> so much new functionality as repackaging old) but when used well can give a
> really smooth feel to a desktop. Kind of like when you find you cam add
> programs to the send to menu in Win95. It's just nice. 
> 
> On another track entirely, I've been checking recent reviews of Gnome and
> the one thing that has come up time and time again has been the lack of
> keyboard shortcuts.
> 
> Bring it on!
> 
> Steve.
> 
> -----Original Message-----
> From: Nathan Clemons [mailto:nathan@windsofstorm.net]
> Sent: 10 June 1999 13:56
> To: Steve Homer
> Cc: "recipient.list.not.shown"
> Subject: RE: Changing fonts in Gnome applications
> 
> 
> 
> This would be the best... changing a window at a time, or you can set if
> globally under the themes section. Of course, the session manager would
> have to save the font with the window...
> 
> -------------------------------------------------------------------------
> Nathan P. Clemons                       "Peace favor your code."
> nathan@windsofstorm.net                 ICQ: 2810688
> IN CONSTRUCTION:                        http://gnome.windsofstorm.net
> -------------------------------------------------------------------------
> 
> On Thu, 10 Jun 1999, Steve Homer wrote:
> 
> > As well as being able to change this sort of thing from Control Panel, it
> > would be a nice touch if we could (for example) open a copy of gfontsel
> (or
> > whatever) and drag a font to a particular item of a window (title bar,
> menu
> > bar, main text etc) and have that section of the text automatically change
> > font. If we could add a modifier (holding down ctrl for example) to allow
> us
> > to state if it is a local or global change so much the better.
> > 
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]