Treeview cell and alignment

2003-10-28 Thread Manuel Op de Coul
I wonder what's the common way of setting the alignment of text in a treeview column different from the default left alignment. I ask because my attempts so far weren't successful. Thanks in advance, Manuel ___ gtk-list mailing list [EMAIL PROTECTED] h

Function to execute a program

2003-10-28 Thread Pisanu Prasertnopakun
 Hi all,I'm a newbie gtk-programmer and wanna ask something. Which function in gtk-library is use to run a program such as "xterm" or "xclock"? I design myself a simple program with a simple button and want to run an execute program after button click. Here i want to pack it in my "xclock" function

Re: Function to execute a program

2003-10-28 Thread John Cupitt
Hi, Pisanu Prasertnopakun wrote: // HERE i find a function to run a simple program like xclock!! // i should ! be "run(xclock);" or something like that.. have somebody an idea? The easiest is system(): if( system( "xterm &" ) ) printf( "couldn't start xterm\n" ); It's *nix only. glib has g_

Debugging gtk source from Ximian RPM's

2003-10-28 Thread Kent Schumacher
I'm using Ximian RPM's to install my GTK+ libraries. I've got a bug right now that is showing up in a gtk routine, and I would like to step through the gtk source but am unable to. Is there any way to get source code debugging on gtk libraries and still use Ximian rpms? Thanks, Kent ___

GtkItemFactory (1.2) problem...

2003-10-28 Thread Ville Helin
hi! i just subscribed to this mailing list as spending an hour surffing the net did not shed any light into my problem, so i'm not sure if this has been discussed here (i did search the mailing list): i'm using gtk 1.2.10, and i use GtkItemFactory-structs to create menubars. everything is fine u

g_slist_foreach and single arg functions

2003-10-28 Thread Mike
Heya, I've seen a number of applications and libraries such as pango using g_slist_foreach(list, (GFunc) g_free, NULL); and other single argument functions. GFunc is typed out to two args, and g_slist_foreach calls the passed function with two args (eg. g_free(list->data, NULL)). This works, but

gtk-config needed

2003-10-28 Thread U Fleku
Hi all, excuse me if I resend the same post, but I really need a gtk-config file. Please someone can send me this file? I need it for compile a linux program on Cygwin, a linux emulator for win32. 'Bye

Re: g_slist_foreach and single arg functions

2003-10-28 Thread Owen Taylor
On Tue, 2003-10-28 at 15:59, Mike wrote: > Heya, > > I've seen a number of applications and libraries such as pango > using g_slist_foreach(list, (GFunc) g_free, NULL); and other single > argument functions. > > GFunc is typed out to two args, and g_slist_foreach calls the passed > function with

RE: g_slist_foreach and single arg functions

2003-10-28 Thread Tom Liu
This is not good, but it works. For example: printf() you can push a lot of args than they need. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Sent: Tuesday, October 28, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: g_slist_foreach and single arg fun

Re: gtk-config needed

2003-10-28 Thread Michael Hill
gtk-config only existed for GTK-1.2.  If it's a GTK-2.0 program you should be using `pkg-config gtk-2.0 --cflags --libs`.  Gargnome has a prepackaged GTK-2.0 installer that uses the mingw runtime if you want to give that a try.  I don't believe GTK has been ported straight to Cygwin, though I c

Re: GtkItemFactory (1.2) problem...

2003-10-28 Thread Ville Helin
On Tue, 28 Oct 2003, Ville Helin wrote: > hi! > > i just subscribed to this mailing list as spending an hour surffing the > net did not shed any light into my problem, so i'm not sure if this has > been discussed here (i did search the mailing list): > > i'm using gtk 1.2.10, and i use GtkItemFact

Re: gtk-config needed

2003-10-28 Thread U Fleku
ï It's not a gtk-2.0 program, the compilation requires me just gtk-config. Luckily gtk was ported to cygwin (there is even two version). Now I only need this file. 'bye. - Original Message - From: Michael Hill To: U Fleku Cc: [EMAIL PROTECTED] Sent: Tuesday, October 28

Re: gtk-config needed

2003-10-28 Thread Michael Torrie
On Tue, 2003-10-28 at 17:04, U Fleku wrote: > ï > It's not a gtk-2.0 program, the compilation requires me just > gtk-config. Luckily gtk was ported to cygwin (there is even two > version). Now I only need this file. See http://www.gimp.org/win32. The complete gtk 1.3 (1.2) and 2.x branches with