Re: how shrink entire GUI?

2002-03-17 Thread Paul Davis
>Your rc file trick just changed font right? Why >didn't you set a graphics context to have font >size you wanted? because an RC file *does* set the GC's to have the requested font, but in a way that is common to all GTK programs and can be easily managed by the user (for various definitions of "

FW:

2002-03-17 Thread 黃慶 Kason Huang
Title: FW: hello all:     my friend asks me a question,but i couldn't work it out.     someone could help me.     thanks a lot. kason  -Original Message- From:   ©ö¤å¬P Alex Yi  Sent:   Monday, March 18, 2002 9:10 AM To: ¶À¼y Kason Huang Subject:     

Re: gtk2 Segmentation faults

2002-03-17 Thread iain
On Sun, 2002-03-17 at 18:56, Kristian Peters wrote: > Hello. > > Please cc me. I'm not subscribed (yet). > > No matter what gtk2-code I compile, every time it crashes immediately after the >first gtk-statement. Are you running a gtk1.2 LD_PRELOAD hack for antialiasing? iain -- "Everybody thi

Re: gtk2 Segmentation faults

2002-03-17 Thread Ronald Bultje
On Sun, 2002-03-17 at 23:47, Kristian Peters wrote: > Program received signal SIGSEGV, Segmentation fault. > gdk_window_get_geometry (window=0x0 ^^ Your window variable is not initialized. Ronald -- - .-. - /V\| Ronald Bultje <[EMAIL PROTECTED]> - //

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Michael Torrie <[EMAIL PROTECTED]> wrote: > On Sun, 2002-03-17 at 15:39, Kristian Peters wrote: > > > > Yes ok. That was copy'n'paste. Sorry for confusion. My fault. It's too late >already. The program crashes between that two printf statements: > > > > #include > > #include > > > > int main

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
> According to a debugger, where is it crashing (load it up in ddd after > compiling with -g)? The code you present here looks really suspicious. > As was pointed out, declaring a variable after a function call is > illegal in C. Also note that GtkWidget *window is not a gtk statement > at all.

Re: gtk2 Segmentation faults

2002-03-17 Thread Michael Torrie
On Sun, 2002-03-17 at 15:39, Kristian Peters wrote: > > Yes ok. That was copy'n'paste. Sorry for confusion. My fault. It's too late already. >The program crashes between that two printf statements: > > #include > #include > > int main( int argc, > char *argv[] ) > { > GtkWidg

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Ronald Bultje <[EMAIL PROTECTED]> wrote: > On Sun, 2002-03-17 at 23:00, Kristian Peters wrote: > > int main( int argc, > >char *argv[] ) > > { > > printf("1\n"); > > GtkWidget *window; > > printf("2\n"); > > [...] > > > > reveals: > > I wonder why this actually com

Re: gtk2 Segmentation faults

2002-03-17 Thread Michael Torrie
On Sun, 2002-03-17 at 15:00, Kristian Peters wrote: > Owen Taylor <[EMAIL PROTECTED]> wrote: > > Is your system Red Hat 7.2 in other ways? > > No. I applied updates from errata only. > > > Porbably something to do with config files or the set of files in your packages. >Maybe you could try the

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Hello. Ok. I tried the packages from ftp.gtk.org without any noticable changes. How can I switch debugging on ? *Kristian :... [snd.science] ...: :: :: http://www.korseby.net :: http://gsmp.sf.net :..: ___ gtk-list maili

Re: gtk2 Segmentation faults

2002-03-17 Thread Ronald Bultje
On Sun, 2002-03-17 at 23:00, Kristian Peters wrote: > int main( int argc, >char *argv[] ) > { > printf("1\n"); > GtkWidget *window; > printf("2\n"); > [...] > > reveals: I wonder why this actually compiled, you're using a declaration of a variable after a function

Re: gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Owen Taylor <[EMAIL PROTECTED]> wrote: > Is your system Red Hat 7.2 in other ways? No. I applied updates from errata only. > Porbably something to do with config files or the set of files in your packages. >Maybe you could try the i386.rpm > from ftp.gtk.org; they are built against 7.2 with al

Re: gtk2 Segmentation faults

2002-03-17 Thread Owen Taylor
Kristian Peters <[EMAIL PROTECTED]> writes: > Hello. > > Please cc me. I'm not subscribed (yet). > > No matter what gtk2-code I compile, every time it crashes immediately after the >first gtk-statement. > > Even that simple tutorial from gtk.org crashes (here: "GtkWidget *window;") : > > #i

Re: gtk2 Segmentation faults

2002-03-17 Thread Sven Neumann
Hi, Kristian Peters <[EMAIL PROTECTED]> writes: > No matter what gtk2-code I compile, every time it crashes immediately after the >first gtk-statement. it would help if you tell us if there are any error messages on the console before it crashes. Salut, Sven _

gtk2 Segmentation faults

2002-03-17 Thread Kristian Peters
Hello. Please cc me. I'm not subscribed (yet). No matter what gtk2-code I compile, every time it crashes immediately after the first gtk-statement. Even that simple tutorial from gtk.org crashes (here: "GtkWidget *window;") : #include int main( int argc, char *argv[] ) { Gtk

Re: GtkCList question..

2002-03-17 Thread Paul Davis
>can anyone tell me if the only way you can know the column and row selected >is by connecting the list to the select-row signal? gtk_clist_get_selection_info() can be used from a button press or release handler to determine similar information. ___ g

GtkCList question..

2002-03-17 Thread hunchback
Hi, can anyone tell me if the only way you can know the column and row selected is by connecting the list to the select-row signal? Thanks for any help, Nuno Afonso ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-

Re: Threading question (avoiding deadlock)

2002-03-17 Thread Paul Davis
>I was hoping somebody could point me in the right direction here. your periodic update thread should check a variable that tells it to die. add a lock and a condition variable, and use it like this: void kill_periodic_thread () { pthread_mutex_lock(&lock_protecting_kill_flag); k

environment variables. gnome q.

2002-03-17 Thread David Eduardo Gomez Noguera
Hello. This is a question on how can i make gnome startup progams remember the environment variables? This is because i use galeon with LC_CTYPE set to ja_JP, but all other apps use other environments. I wish i could exit x and have "galeon --server" remember it was called from env LC_CTYPE=ja_