[Top][All Lists]

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

Re: [Gnumed-devel] FromGTK Developers LIst: Row height sizes in GTK wigi

From: Ian Haywood
Subject: Re: [Gnumed-devel] FromGTK Developers LIst: Row height sizes in GTK wigits with font changes
Date: Sat, 16 Aug 2003 21:13:27 +1000

On Sat, 16 Aug 2003 20:26:10 +1000
Owen Taylor <address@hidden>(by way of richard terry
<address@hidden>) wrote:

> Can someone on the list who is technical decipher this. I posted to
> the GTK developers list regarding the fonts/borders.
> Richard
> On Fri, 2003-08-15 at 03:26, richard terry wrote:
> From your screenshots, it looks like you are using GtkCList and the
> obsolete X font backend to GTK+. It's really pretty hard for us to
> give an answer for those circumstances - my best guess is that
> for some reason GTK+ is using a fontset where some of the fonts aren't
> available in small bitmap sizes.

The latest version of GTK is [around] 2.0, which has its modern
fontsystem.  wxPython uses GTK 1.x, which in turn uses the traditional
(old, stupid, ugly) X windows fontsystem.

> You are going to have to be more specific here. As far as we know,
> it's quite possible to have a GTK+ theme with 1 pixel or even 0
> pixel borders, and for the theme to draw the borders however it likes.

GTK allows configuration files to change the appearence of widgets
across all running applications, you can
download various theme files on the web. I am currently trying to write
my own which has "border = 0", without much success (the docs explain
how to write theme files, but not where to put them so those changes
take effect)

> And there is a specific call to make GtkEntry borderless without
> any resort to the theming system.

gtk_entry_set_frame ()

not accessible through wxPython. 

Writing our own theme is probably the better solution: this is 
how one is supposed to alter the exact appearence of GTK widgets,
(the alternative is patching wxWindows to access these functions)

Ian Haywood

PGP public key E750652E at
9BF0 67B7 F84F F7EE 0C42  C063 28FC BC52 E750 652E

reply via email to

[Prev in Thread] Current Thread [Next in Thread]