Pango without X display/gtk_init()?

2003-12-01 Thread W. Borgert
Hello,

I like to add a non-X11 mode (command line only) to a GUI
program.  At the moment, a DISPLAY is needed for GDK/GTK,
which is not useful, if running in an automated process,
such as make, on a non-GUI-server.  The program needs Pango
nonetheless for rendering text to export as a PNG file.  Is
this possible?  If so, how?  Thanks in advance!

Cheers,
-- 
W. Borgert <[EMAIL PROTECTED]>
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GtkWindow without focus

2003-12-01 Thread truebilly
Hi all,

   Currently I want to implement a virtual keypad for applications. It means that a 
key press event will be emit to focused window as soon as mouse clicks on the picture 
of keypad. I would like the keypad picture and applications are not in same window 
because applications should not care the virtual keypad. So the question is raised. 
When mouse clicks the picture, the window which the picture is in must get focus. It 
is to say that window of picture receives the event which is emitted by itself. It is 
not what I think. Just one way can resolve this question. Maybe it is that the window 
of picture should not get focus for ever. In qt QFrame is a good tool. Because it will 
never get focus. But I don't know how I can implement my idea by GTK.
   Your response is greatly appropriated!
__

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


GLibc

2003-12-01 Thread wilson k.j

Hi,

I have a question on GLib's Gthread pool...
Why there is no option for specifying the stack size
(for threads), while creating the thread pool?
I think now it uses the default stack size for all the
threads in the pool.

But what should we do when we need to build threads
with customized value for stack-size, while 
creating the pool

Please support
Regards
wilson
www.wsspl.com

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Pango without X display/gtk_init()?

2003-12-01 Thread Sven Neumann
Hi,

"W. Borgert" <[EMAIL PROTECTED]> writes:

> I like to add a non-X11 mode (command line only) to a GUI
> program.  At the moment, a DISPLAY is needed for GDK/GTK,
> which is not useful, if running in an automated process,
> such as make, on a non-GUI-server.  The program needs Pango
> nonetheless for rendering text to export as a PNG file.  Is
> this possible?  If so, how?  Thanks in advance!

You could be using the PangoFT2 backend to render your fonts. You
don't need to call gtk_init() then.


Sven

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


Re: GLibc

2003-12-01 Thread Sebastian Wilhelmi
Hi,

> I have a question on GLib's Gthread pool...
> Why there is no option for specifying the stack size
> (for threads), while creating the thread pool?
> I think now it uses the default stack size for all the
> threads in the pool.

It's because that would it make impossible to reuse threads from one
threadpool for another. Additionally thread stack sizes are not very
portable and often not very useful. Older versions of g_thread_create
and g_thread_pool_new had a stack size argument, but we left it out in
the final versions because of that.

> But what should we do when we need to build threads
> with customized value for stack-size, while 
> creating the pool

Not much, I'm afraid. You could build your own poor-mans-thread-pool
with GAsyncQueue, if you don't need to pass threads from different
threadpools to each other. That should be fairly simple.

Ciao,
Sebastian
-- 
Sebastian Wilhelmi |här ovanför alla molnen
mailto:[EMAIL PROTECTED]  | är himmlen så förunderligt blå
http://seppi.de|

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


GLibc

2003-12-01 Thread Wilson

Hi,

I have a question on GLib's Gthread pool...
Why there is no option for specifying the stack size (for threads), while
creating the thread pool?
I think now it uses the default stack size for all the threads in the pool.

But what should we do when we need to build threads with customized value
for stack-size, while 
creating the pool

Please support
Regards
wilson
www.wsspl.com


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