Re: Determining if widget has children

2003-11-21 Thread Dave Smith
On Friday 21 November 2003 14:31, Mike Dailey wrote:
> Is there an easy way to determine if a widget--say a
> GTK scrolled window--has any child widgets packed into
> it?

Do
gtk_bin_get_child   (or)
gtk_container_get_children
help?

Dave
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Determining if widget has children

2003-11-21 Thread Mike Dailey
Is there an easy way to determine if a widget--say a
GTK scrolled window--has any child widgets packed into
it?

I've looked for a "gtk_is_parent" type function, but
no luck.

Any help?  Thanks!

Mike
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Slow Rendering?

2003-11-21 Thread Dennie, Brooke
Hi,

> -Original Message-
> From: Brett Granger [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 21, 2003 9:47 AM
> To: Dennie, Brooke
> Cc: 'Sven Neumann'; '[EMAIL PROTECTED]'
> Subject: Re: Slow Rendering?
> 
> 
> 
> A quick grep of the source code (gdk/x11/gdkpango-x11.c) 
> shows that the 
> environment variable you really want is GDK_USE_XFT, not 
> GDK_ENABLE_XFT. 
>   I don't know whether that will make any difference to what you're 
> seeing, but it can't hurt to try.
> 
> --Brett
> 
> 

Well, that definitely made a difference. Unfortunately, it
wasn't for the better :) Thanks for the correction,
though.

Brooke
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Slow Rendering?

2003-11-21 Thread Sven Neumann
Hi,

Brett Granger <[EMAIL PROTECTED]> writes:

> A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that
> the environment variable you really want is GDK_USE_XFT, not
> GDK_ENABLE_XFT. I don't know whether that will make any difference
> to what you're seeing, but it can't hurt to try.

Oops, sorry for this mistake and thanks to Brett for correcting me.

It should be noted however that you cannot rely on the the non-Xft
rendering being available in the future. In the long run Pango will
drop support for X11 core fonts.


Sven
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Slow Rendering?

2003-11-21 Thread Brett Granger
A quick grep of the source code (gdk/x11/gdkpango-x11.c) shows that the 
environment variable you really want is GDK_USE_XFT, not GDK_ENABLE_XFT. 
 I don't know whether that will make any difference to what you're 
seeing, but it can't hurt to try.

--Brett

Dennie, Brooke wrote:
Hi,


-Original Message-
From: Sven Neumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 10:30 AM
To: Dennie, Brooke
Cc: '[EMAIL PROTECTED]'
Subject: Re: Slow Rendering?
Hi,

Sven Neumann <[EMAIL PROTECTED]> writes:


Unless you set GDK_ENABLE_XFT to 0 explicitely, you are using the
PangoXft backend then. Font configuration is done using fontconfig.
Please check the fontconfig user documentation at
http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html
Sorry, I confused your answer with another thread where a user was
asking for information about font configuration.


Oh good, I was beginning to wonder if I'd suddenly lost my
mind...

The answer to your question about speed issues on remote displays is
that you could try to use X11 core fonts by setting the environment
variable GDK_ENABLE_XFT to 0. This would disable antialiased fonts
which are likely causing your speed issues. Does your X-Server
implement the RENDER extension?


Hrmm. Setting the variable didn't seem to make much of a 
difference. The application now takes ~12s, but popups sped 
up to ~3s

RENDER isn't implemented as far as I know since I get to see
the "extension RENDER missing" error every time I run my 
program :D

Any other ideas? Thanks again!

Brooke


Sven

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Slow Rendering?

2003-11-21 Thread Dennie, Brooke
Hi,

> -Original Message-
> From: Sven Neumann [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 21, 2003 6:14 AM
> To: Dennie, Brooke
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: Slow Rendering?
> 
> 
> Hi,
> 
> "Dennie, Brooke" <[EMAIL PROTECTED]> writes:
> 
> > Hrmm. Setting the variable didn't seem to make much of a 
> > difference. The application now takes ~12s, but popups sped 
> > up to ~3s
> > 
> > RENDER isn't implemented as far as I know since I get to see
> > the "extension RENDER missing" error every time I run my 
> > program :D
> > 
> > Any other ideas? Thanks again!
> 
> Two more things that can cause long startup times are (a) not using
> fc-cache and 

Can't say that I'm familiar with that. Looks like I need to
do some research...

> (b) having extended input devices configured but not
> connected.
> 
> 

Thanks again for all your help! Hopefully one of these will
work out

Brooke

> Sven
> 
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Slow Rendering?

2003-11-21 Thread Dennie, Brooke
Hi

> -Original Message-
> From: Tony Denault [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 20, 2003 10:20 PM
> To: Dennie, Brooke
> Cc: 'Sven Neumann'; '[EMAIL PROTECTED]'
> Subject: RE: Slow Rendering?



> My initial test using pango caused the timer function to
> take >270 ms (over 1000x slower). After picking up the 
> maillist thread, I
> decide to experiment using different font as I though PANGO might
> be rendering everything and sending images to the X11 client windows.
> Here is a table of different fonts using Pango;
> 
> Font   Pango PangoGDK_ENABLE_XFT=0   size
> --
> San 8  270   250 7x15
> Serif 10   360   362 8x19
> miscFixed  9   6.8   6.7 6x14
> miscFixed 10   6.9   6.8 9x15
> console8x166.9   6.8 8x16
> Courier 10 372   372 9x18
> Fixed  6.8   6.9 9x15
> LucidaTyperwriter 9361   361 8x17
> 
> Also note the Pango time varies widely, for example the
> 360 ms can jump about upto 700ms. I wrote the 'best' time
> for the table.
> 

That's interesting. I hadn't thought of that actually. Some of
my problem could be in the type of font. I'm never given an
xfd, but rather I'm handed an XFontStruct. What I've been 
doing is just creating an empty font description, then 
calling XGetFontProperty on the XFontStruct and pulling all of
the values I need for the font description out of it and
filling those in.


> GDK_ENABLE_XFT=0 help a little (sometimes).
> For me picking a better font will help. 6.8 ms is OK, but I would
> like better -> This is still 25x slower that gdk_font_load().
> 

Not really an option due to the nature of the project...


> My GTK app runs on a linux box running Fedora Core release 
> 0.94 (Severn).
> I am displaying on a XP computer running X-Win32 X11 server.
> 
> Running the app directly on the linux console improves things somewhat
> (ie: 6.8ms -> 4.8ms).
> 

Also not an option...


> Tony
> 
> /-
> --\
> | Tony Denault | Email: 
> [EMAIL PROTECTED] |
> | Institute for Astronomy  |  Phone: 
> (808) 932-2378 |
> | 640 North Aohoku Place   |Fax: 
> (808) 933-0737 |
> | Hilo, Hawaii 96720   |  
>   |
> \-
> --/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


run the external program

2003-11-21 Thread rosa muñoz
hello:
I want to run a program external but I want that it returned window's vector 
to me.
I used system but it not returned any
Help me please!

_
Charla con tus amigos en línea mediante MSN Messenger. 
http://messenger.microsoft.com/es

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Slow Rendering?

2003-11-21 Thread Sven Neumann
Hi,

"Dennie, Brooke" <[EMAIL PROTECTED]> writes:

> Hrmm. Setting the variable didn't seem to make much of a 
> difference. The application now takes ~12s, but popups sped 
> up to ~3s
> 
> RENDER isn't implemented as far as I know since I get to see
> the "extension RENDER missing" error every time I run my 
> program :D
> 
> Any other ideas? Thanks again!

Two more things that can cause long startup times are (a) not using
fc-cache and (b) having extended input devices configured but not
connected.


Sven
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list