Re: g_signal_connect isn't working

2005-03-10 Thread Iago Rubio
On Thu, 2005-03-10 at 21:12 -0500, Pier-Luc Charbonneau wrote: > Hi, > > I'm trying to write my first gtk+ app and this snippet isn't working > (tried on 2 different computer and I tried to upgrade to the latest > gtk+) > > When pressing a key in the entry: > > where is psi : 134520912 > where i

Re: g_signal_connect isn't working

2005-03-10 Thread Olexiy Avramchenko
Pier-Luc Charbonneau wrote: static gboolean recalculate_psi_consumption(GtkWidget *widget, gpointer data) This is your callback declaration. It takes 2 parameters. g_signal_connect(G_OBJECT(start),"key_press_event",G_CALLBACK(recalculate_psi_consumption),(gpointer)psi); "key-press-event" signal

Re: poll(2) only can handle 256 fds?

2005-03-10 Thread Iago Rubio
On Fri, 2005-03-11 at 02:12 +0100, Markus Lausser wrote: > On Tue, 2005-03-08 at 21:56, Markus Lausser wrote: > > Hello, > > > > i get the message > > *** GLib *** : poll(2) failed due to: Invalid argument. > > thousand times when running my application. > > It seems that it happens if i have ac

RE: deadlock

2005-03-10 Thread Freddie Unpenstein
> My name is Dirk, I'm writing a control programm for a 1m telescope > in Germany. The current status of the device is periodically > displayed in GTK using a thread. Does it NEED to use a thread? How do you get the information, and how long does it take to process an update? The only times I'

g_signal_connect isn't working

2005-03-10 Thread Pier-Luc Charbonneau
Hi, I'm trying to write my first gtk+ app and this snippet isn't working (tried on 2 different computer and I tried to upgrade to the latest gtk+) When pressing a key in the entry: where is psi : 134520912 where is data: 135602024 psistart *psi : 514 psistart *data: 8 When pushing the button:

poll(2) only can handle 256 fds?

2005-03-10 Thread Markus Lausser
On Tue, 2005-03-08 at 21:56, Markus Lausser wrote: > Hello, > > i get the message > *** GLib *** : poll(2) failed due to: Invalid argument. > thousand times when running my application. > It seems that it happens if i have accepted 100 < x < 200 > tcp connection from which i listen for input. >

Re: deadlock

2005-03-10 Thread Brian J. Tarricone
Dirk Huenniger wrote: Hello everybody, My name is Dirk, I'm writing a control programm for a 1m telescope in Germany. The current status of the device is periodically displayed in GTK using a thread. When the user clicks the quit butten a callback routine is started. At the same time my thread

deadlock

2005-03-10 Thread Dirk Huenniger
Hello everybody, My name is Dirk, I'm writing a control programm for a 1m telescope in Germany. The current status of the device is periodically displayed in GTK using a thread. When the user clicks the quit butten a callback routine is started. At the same time my thread does a gtk_threads_enter

GtkTreeView: space between two column since 2.6

2005-03-10 Thread Andreas Bachmann
Hi! I'm developing a gtk+ based equivalent to 'netstat' and 'sockstat'. the app is at the moment just for freebsd machines runnable, since i'm using kernel structures (sysctl xsocket and xfile). but my problem is not freebsd-specific. between two GtkTreeViewColumns, a gray 1-2 pixel wide vertical

Re: time interaction

2005-03-10 Thread David Necas (Yeti)
On Thu, Mar 10, 2005 at 12:05:50PM -0400, André Pedralho wrote: > > if (the button of the mouse is being pressed over a button for 10 sec) > then do a thing; Take a look at the documentation on g_timeout_add() ;-) When the button is pressed (that is in "button-pressed-event" handler) set up time

Re: time interaction

2005-03-10 Thread André Pedralho
is there a way to get the time that a signal is running!? eg. the button of the mouse is being pressed for 10 sec! if (the button of the mouse is being pressed over a button for 10 sec) then do a thing; in mouse case I think I can use the button "pressed" signal and the glib Timers! What do you

Re: gtk-entry pointer problem

2005-03-10 Thread Iago Rubio
On Wed, 2005-03-09 at 11:19 +0100, [EMAIL PROTECTED] wrote: > Hello, > I have a problem with my gtk entry widget. In my application I want to get the > path of a picture, entered by the user in this entry widget. > > I have the following structure which is passed as argument [snipped] > gboolean t

simple gtk app on arm

2005-03-10 Thread Robertson, Ezban
Hi guys, I'm fairly new with gtk+ programming. Nonetheless, I'm trying to run a simple application on an arm platform runninx Xfbdev - TinyX. I've compiled the source with the pkg-config options and everything compiles ok. The problem arises when I run it. The X server is already running, and the

gtk-entry pointer problem

2005-03-10 Thread simon . honold
Hello, I have a problem with my gtk entry widget. In my application I want to get the path of a picture, entered by the user in this entry widget. I have the following structure which is passed as argument struct picture_s{ unsigned char *y_pic; unsigned char *u_pic; unsig