How to specify fonts depends on encode?

2008-10-15 Thread Magicloud
Hi, I want to use sgi screen font for english (it is so pretty), and wqy for chinese. I specify screen-7 in .gtkrc2, which works very well for english. But when I display chinese, it choose a font and a size (I do not know how) autoly, so makes everything a mass. Can I specify the fonts

TreeModelFilter as model for IconView.

2008-10-15 Thread Jorge Cardona
Greetings. I'm building an application and i use a global TreeStore to store some elements.I have in a window a Gtk::TreeView and a Gtk::IconView, i create then two TreeModelFilter, because I want to show just some elements from my global TreeStore in my Gtk::TreeView and others in the

Focus chain ineffectual

2008-10-15 Thread Jeffrey Barish
I'm trying to set the focus chain. I have 3 widgets that I want to chain, so I specified them as the arguments of the set_focus_chain method on the top-level window. I expect focus to move from one to the next as I hit tab. Instead, focus moves to many widgets not in the chain in addition to

Re: Theming API hackfest: last call

2008-10-15 Thread Robert Staudinger
On Wed, Oct 15, 2008 at 12:03 PM, Christian Dywan [EMAIL PROTECTED] wrote: [...] Sounds like it would make subclassing kind of hard, if I understand you right. For instance people like to subclass to create all sorts of buttons and it is only intuitive that they all look similar. What would

Re: Theming API hackfest: last call

2008-10-15 Thread Christian Dywan
Am Wed, 15 Oct 2008 13:48:47 +0200 schrieb Robert Staudinger [EMAIL PROTECTED]: On Wed, Oct 15, 2008 at 12:03 PM, Christian Dywan [EMAIL PROTECTED] wrote: [...] Sounds like it would make subclassing kind of hard, if I understand you right. For instance people like to subclass to create

Re: Theming API hackfest: last call

2008-10-15 Thread Robert Staudinger
On Wed, Oct 15, 2008 at 3:52 PM, Christian Dywan [EMAIL PROTECTED] wrote: [...] thanks for the explanation. I see the idea and I agree, automatic inheritance doesn't always make sense. However as seem to suggest to add explicit rules to the theme's gtkrc. I think if we are taking this route,

Re: gobject-introspection and gtkmmproc (Re: [Vala] Auto mm(C++) binding for libraries written in Vala?)

2008-10-15 Thread Murray Cumming
On Tue, 2008-10-14 at 14:31 -0400, Yu Feng wrote: Hi, there is a link at http://live.gnome.org/GObjectIntrospection/ saying that gtkmm 'can' use gobject-introspection. Is anyone working on this No. / when will it likely to be done? Not soon unless someone decides that they would enjoy

Re: Theming API hackfest: last call

2008-10-15 Thread Brian J. Tarricone
On Wed, 15 Oct 2008 13:48:47 +0200 Robert Staudinger wrote: Relatedly I am thinking of a sane way to import styling into CSS blocks to aid widget mimicking. Imagine you want to mimick a GtkButton with your own wonderful implementation FooButton, but unrelated in the GType hierarchy (not

Re: Theming API hackfest: last call

2008-10-15 Thread Robert Staudinger
On Wed, Oct 15, 2008 at 3:44 AM, Behdad Esfahbod [EMAIL PROTECTED] wrote: Christian Dywan wrote: [...] Right. If we can assign names to widgets (does the a11y layer do something like that?) then the names can be accessed using the #column-header syntax. That is IMO the correct way, and

Re: Theming API hackfest: last call

2008-10-15 Thread Christian Dywan
Am Wed, 15 Oct 2008 11:30:38 +0200 schrieb Robert Staudinger [EMAIL PROTECTED]: On Tue, Oct 14, 2008 at 11:44 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: [...] Shouldn't the class-specific ones use the css class modifier? That is, .GtkButton? Per libccss default, the style of a

Re: Theming API hackfest: last call

2008-10-15 Thread Robert Staudinger
On Tue, Oct 14, 2008 at 11:44 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: [...] Shouldn't the class-specific ones use the css class modifier? That is, .GtkButton? The intersection of terminologies is a bit confusing, but it's really div, p, span etc. in HTML and GtkWindow, GtkButton etc.

Re: Theming API hackfest: last call

2008-10-15 Thread Behdad Esfahbod
Robert Staudinger wrote: On Wed, Oct 15, 2008 at 12:03 PM, Christian Dywan [EMAIL PROTECTED] wrote: [...] Sounds like it would make subclassing kind of hard, if I understand you right. For instance people like to subclass to create all sorts of buttons and it is only intuitive that they

Re: pre-summit introspection status

2008-10-15 Thread Behdad Esfahbod
Gustavo J. A. M. Carneiro wrote: On Fri, 2008-10-10 at 17:19 -0400, Behdad Esfahbod wrote: Colin Walters wrote: On Thu, Oct 9, 2008 at 9:34 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: But most recently I was reading the static analysis literature and came across the idea of using gcc

Re: pre-summit introspection status

2008-10-15 Thread Gustavo J. A. M. Carneiro
On Fri, 2008-10-10 at 17:19 -0400, Behdad Esfahbod wrote: Colin Walters wrote: On Thu, Oct 9, 2008 at 9:34 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: But most recently I was reading the static analysis literature and came across the idea of using gcc user-attributes for source code

Re: Theming API hackfest: last call

2008-10-15 Thread Robert Staudinger
On Wed, Oct 15, 2008 at 7:11 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: [...] I still don't buy that. What you want is to make sure GtkPlug style override that of GTKWindow. And that already happens I assume. *Any* use of .GtkWindow {...} is wrong, because I may do this in my pygtk code:

Re: pre-summit introspection status

2008-10-15 Thread Colin Walters
On Wed, Oct 15, 2008 at 1:16 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: Note that I did not suggest that. What I requested was using code, not comment, annotations, such that people can write static analyzers using existing frontends. What the introspection framework continues to use is