How to get the fond choosen by Pango?

2008-06-03 Thread Michelle Konzack

*   Do not Cc: me, because I READ THIS LIST, if I write here   *
*Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*


Hello,

if I have a text field, in which I load a file (iso-8859-X
or unicode) I get always the right fonts...

Nice thing with Pango, but is there a way to know, WHICH
font Pango has choosen?

I need this function urgently for analysis... because I
have problems with some older programs which curently run
GTK1.2 and must be ported to GTK+2...

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
+49/177/935194750, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to build a GtkTree?

2007-06-13 Thread Michelle Konzack
Hello Guenther,

I have read the thread and I have the same proble, since YOUR
structure is exactly the same as the Maildir format  :-)

I have problems getting the parent itter...

...and then, if a tree is there and in the server sice appear
a new directory HOW to add this to the existing tree?

GTK is nice but it is using my last nervs!

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


Am 2007-05-26 13:08:06, schrieb Guenther Meyer:
 What I like to do, is building a tree from some data, that is available in  
 the following format:
 catA
 CatB
 CatB.a
 CatB.b
 CatB.a.x
 CatC
 CatC.q
 CatC.q.1
 CatC.q.1.a
 CatD
 ... and so on...
- END OF REPLIED MESSAGE -




-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+ and multithreating

2007-05-18 Thread Michelle Konzack
Am 2007-05-16 21:32:39, schrieb Chris Vine:
 The documentation is here:
 
 http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g-idle-add

I have the full documentation installed and I have a hardcopy of the PDF.

 The idea is that you call g_idle_add() in your worker thread with a
 callback (function pointer and data) which you want to execute in the
 main program (GUI) loop.

This is what I have tried yesterday...

 A simple example would be to call:
 
 g_idle_add((GSourceFunc)g_print, Hello\n);
 
 If you call this in the worker thread, it will print Hello in the GTK+
 main program thread (you must have called g_thread_init(NULL) first).

See other message:
I have a problem with g_thread_init(NULL) and do not know why.

 Incidentally, instead of using pthreads, you can use the platform
 independent GThread implementation.  See:
 
 http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html

I was trying already...  (checking all posibilities)

Threading is realy new for me..

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+ and multithreating

2007-05-16 Thread Michelle Konzack
Am 2007-05-14 20:56:05, schrieb Cédric Lucantis:
 Michael is probably right, but to answer your question there's a good 
 documentation about that in the GLib manual. See the 
 sections 'Threads', 'Thread Pools' and 'Asynchronous Queues' under 'Glib Core 
 Application Support'. If you want to know more, there's a tutorial here 
 (about pthread but with a general introduction) :
 
 http://www.llnl.gov/computing/tutorials/pthreads

Thursday evening downloaded with some other pthread-Tutorials and
3 hours later tried...

I have put my function into pthread_create() like in the example
of those tutorials and it was just working... (generaly)

But now I must find out, how to put the received data (from the
thread) back into the GtkTreeView widget (updating)..

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Gtk+ and multithreating

2007-05-14 Thread Michelle Konzack
Hello *,

I am new on this list, but have already codes some VERY simple admin
GUI's...  Now I have a bigger problem/Application which need definitiv
multithreading since it must poll several servers and update several
TreeView and ListView.  I have no experience with it, since I am one
of those

   console-singel-task-no-one-bother-me

programmers (Debian GNU/Linux)...  :-)

OK, for now my GUI is running and then I use a loop like

8
window_main=create_window_main();

while ( TRUE )
{
  while ( gtk_events_pending() )
gtk_main_iteration();

  some_code_to_update_the_dialog
}
8

where some_code_to_update_the_dialog are several functions which are
executed one after one.  Problem FOR NOW is that each function need
ages to get the data and my GUI is dead while running the functions...

If there is nothing to do, the CPU load is 100% while running the loop.
Oops!

Not realy what I want!

So, can anyone provide me with a Tutorial HOW TO MULTITHREAD those
functions some_code_to_update_the_dialog ?

And maybe some other tips...

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to create a simple multilingual GUI

2007-05-14 Thread Michelle Konzack
Am 2007-05-13 02:19:39, schrieb David Ne?as (Yeti):
 On Fri, May 11, 2007 at 02:52:06PM +0200, John Zoidberg wrote:
  I would like to create a GUI with GTK where the language can be chosen
  interactively in a settings menu.
  I would like this to be independant of the machines local language settings.
 
 Each user (not machine) has separate language preferences
 and even individual applications can be run with different
 settings, e.g.
 
   LC_ALL=cs_CZ myapp
 
  How can I do that?
 
 If you want your application to disobey for whatever reason,
 set appropriate LC_* variables yourself -- either in
 a wrapper script or with g_setenv() before initializing
 Gtk+. The selector can be GUI or not, this does not matter.

Does
setlocale(LC_ALL, de_DE);

not work?

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list