Re: Can g_error() write logs to files?

2011-03-05 Thread Mike Ma
于 2011年03月05日 17:33, David Nečas 写道: On Sat, Mar 05, 2011 at 02:13:20PM +0800, Mike Ma wrote: I want g_error() to write messages to files, because released edition shouldn't to print any messages on terminal. But if find any bugs, should to find error messages to send support team. I have read'd

Strange dead lock with g_threads_enter

2011-03-05 Thread Wei-Ning Huang
Thanks Chris. I tried to remove any function call in the compile_thread, i.e: // Thread function // It is signaled to wake up for every 1 second gpointer motion_compile_thread(gpointer data) { ... while (TRUE) { if (!g_mutex_trylock(cp_mutex)) continue; g_cond_wait(compile_cv, cp_mute

Re: Strange dead lock with g_threads_enter

2011-03-05 Thread Wei-Ning Huang
Thanks Chris. I tried to remove any function call in the compile_thread, i.e: // Thread function // It is signaled to wake up for every 1 second gpointer motion_compile_thread(gpointer data) { ... while (TRUE) { if (!g_mutex_trylock(cp_mutex)) continue; g_cond_wait(compile_cv, cp_mute

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > Well call me a frog. It worked. What the heck is going on? I gotta > change all my makefiles? You're a frog, sir! You have to feed all the "-lXX" stuff that is provided by "pkg-config --libs XX" to the linker _after_ the compiler has seen your code,

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
Well call me a frog. It worked. What the heck is going on? I gotta change all my makefiles? > > CC = gcc -g -O2 -Wall # or to taste > > CFLAGS = `pkg-config --cflags gtk+-2.0` > > LIBS = `pkg-config --libs gtk+-2.0` > > > > foo: foo.c > > $(CC) $(CFLAGS) -o @$ $< $(LIBS) > > Oops, that sh

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Allin Cottrell wrote: > On Sat, 5 Mar 2011, Craig Bakalian wrote: > > > > So are the libraries actually there? > > > > > > ls -al /usr/lib/libgtk-x11-2.0* > > > > > > There should be a symlink, something like > > > > > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > > So are the libraries actually there? > > > > ls -al /usr/lib/libgtk-x11-2.0* > > > > There should be a symlink, something like > > > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1 > > This is what I get. It looks okay to me. > > ls -al /us

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
> > So are the libraries actually there? > > ls -al /usr/lib/libgtk-x11-2.0* > > There should be a symlink, something like > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1 > > (version numbers may differ). If not, you need to (re-)install > libgtk2.0-dev at least. > > Allin Cottr

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > I am still at it. It is a lonely night here. My kids are playing with > legos, and I am baffled by this. I have run pkg-config to no avail. I > have examined my packages and include files. It is all there. The > error appears to be in ld. Isn't ld

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
On Sun, 2011-03-06 at 01:30 +0100, David Nečas wrote: > So, what does it print then? Are the flags and libraries printed with > --libs those you expect? If they are not what are those you get Here it is-> pkg-config --cflags gtk+-2.0 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread David Nečas
On Sat, Mar 05, 2011 at 06:51:29PM -0500, Craig Bakalian wrote: > I am still at it. It is a lonely night here. My kids are playing with > legos, and I am baffled by this. I have run pkg-config to no avail. So, what does it print then? Are the flags and libraries printed with --libs those you e

Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
Hi, I am still at it. It is a lonely night here. My kids are playing with legos, and I am baffled by this. I have run pkg-config to no avail. I have examined my packages and include files. It is all there. The error appears to be in ld. Isn't ld a linker? Here is the terminal out on an att

Updated to Ubuntu 11.04

2011-03-05 Thread Craig Bakalian
Hi, I just updated to Ubuntu 11.04 and cannot compile. The Anjuta IDE crashes on opening. When I do a make on my Makefile I get a multitude of undefined references to gtk_function after gtk_function. Did somebody move the cheese. Are my development files gone? I can't even remember how to get

Equivalent number values for Pango markup's font sizes

2011-03-05 Thread Tomasz Jankowski
Hello! I want to change font size for text cell renderer objects in my tree view. One way is to set strings via "markup" property, but it's inconvenient. What are number equivalents of Pango markup sizes like "small", "large", "x-large"? I want to avoid using nonstandard font sizes in my applicati

Re: GtkSwitch — lack of specific signal

2011-03-05 Thread Colomban Wendling
Le 05/03/2011 16:36, Tadej Borovšak a écrit : > Hello. > >> I checked. notify::active is not mentioned anywhere in any of those! >> (I used my browser's find - can you find it mentioned somewhere?) >> Cheers, John Lumby > > Those two links wer

RE: GtkSwitch — lack of specific signal

2011-03-05 Thread Tadej Borovšak
Hello. > I checked. notify::active is not mentioned anywhere in any of those! (I > used my browser's find - can you find it mentioned somewhere?) > Cheers, John Lumby Those two links were just examples that demonstrate how signal handler's prototype

Re: Strange dead lock with g_threads_enter

2011-03-05 Thread Chris Vine
On Sat, 5 Mar 2011 11:58:23 +0800 Wei-Ning Huang wrote: [snip] > From what I can see, the program is stuck because the main thread > locked a mutex in #3. > But from the backtrace, the mutex seems to be locked by > gtk_main_loop_run() which is something I can't control, > and somehow it locked the

RE: GtkSwitch — lack of specific signal

2011-03-05 Thread John Lumby
Colomban wrote : > > > > I suppose this is all described somewhere - where?(I am new to gtk > > application programming). > Check the documentation [1] ;) > For example, for GtkWidget's signals see [2] or for GtkWindow see [3]... > and so on. > > Cheers, > Colomban > > [1] http://librar

Re: Can g_error() write logs to files?

2011-03-05 Thread David Nečas
On Sat, Mar 05, 2011 at 02:13:20PM +0800, Mike Ma wrote: > I want g_error() to write messages to files, because released edition > shouldn't to print any messages on terminal. But if find any bugs, > should to find error messages to send support team. > I have read'd GLib sources, but not find any

Re: Many questions

2011-03-05 Thread Alexander Nagel
Am Sat, 05 Mar 2011 01:58:06 -0500 schrieb Jacques Pelletier : > Hi everybody, good morning, > > I have several questions: > > 1) How do we use the GThreadedSocketService and how do we specify the > function to run when the connection is established? > > I'm using these function in a GUI applic