Delivered-To: garrigue at math.nagoya-u.ac.jp Delivered-To: lablgtk at yquem.inria.fr Date: Thu, 7 Jan 2010 17:38:40 +0100 From: Maxence Guesdon To: lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] segfault related to views and fonts Message-ID: <20100107173840.511b0f14 at haddock.home> In-Reply-To: <4B460222.8030308 at lri.fr> References: <4B460222.8030308 at lri.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Thu, 07 Jan 2010 16:47:46 +0100, Claude March=C3=A9 a =C3=A9crit : >=20 > Dear Lablgtk users, Hello, >... > I'd like to know if there are more natural ways the change the >font=20 > size. In particular, I'd like to remove the dependency on an explicit=20 > font name like "Monospace", which might be a source of the bug. >=20 > Any ideas, suggestions, pointers are welcome! Is using gtksourceviews instead of simple views possible ? You could then let the user set the style he wants in all views, using the style manager of gtksourceview2. The following Gtksv_utils module may help you applying style to all sourceviews of your application: http://home.gna.org/cameleon/refdoc/Gtksv_utils.html It also provides gui boxes to make the user select fonts, size and style in a box similar to gedit's preferences. The user's preferences are stored and can even be shared between all applications using this module (like chamo ;-) ) Hope this helps, Maxence _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk