RE: deadlock

2005-03-11 Thread bachi
> i'm evaluate, to change my code to satisfy gtk with g_idle_add, > g_source_new, g_source_attach and related functions, so the signal, > thread und gui stuff is well controlled. I found it out. By studie the main event loop website, i found the function g_timeout_add. there is one event loop. but

Re: deadlock

2005-03-11 Thread Owen Taylor
On Thu, 2005-03-10 at 21:18 +0100, 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

RE: deadlock

2005-03-11 Thread bachi
> If reading and processing the incomming data takes so long or is so time > sensitive that it needs to be done in a thread, how about reading and > processing all the data ready for display first. When you've got the > numbers and texts to poke into the neccesary places, notify the GUI that > new

Re: How to access gtktreeview header widgets ?

2005-03-11 Thread Hazael Maldonado Torres
I am having treeview with visible headers. What I need to do is to remove GTK_CAN_FOCUS flag from the header button widgets (GTK_WIDGET_UNSET_FLAGS(view, GTK_CAN_FOCUS)) . My problem is that I don't know how to access header widget(s). Is this possible ? You can try with the 'widget' property o

Re: gnome_execute

2005-03-11 Thread Santhosh
Hi Danilo, I believe that the following link may help you... http://fedora.redhat.com/participate/developers-guide/ch-console-access.html [I haven't even tried it... but I find some relavance] Santhosh.. ___ gtk-app-devel-list mailing list gtk-

Re: gtk-entry pointer problem

2005-03-11 Thread Santhosh
> Try to chage: > gtk_entry_get_text(GTK_ENTRY (widget)) > .. with ... > gtk_editable_get_chars(GTK_EDITABLE(widget), 0, -1) > You can also use... picture->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (widget)); [gtk_entry_get_text (..) returns the address of statically allocated

Re: GtkIconView set_item_width question

2005-03-11 Thread Santhosh
Hi Dave, > when I try to set the width of the icons with: > > gtk_icon_view_set_item_width(icon_view,128); > > the placement of the icon become strange. Which layout do you use? Horizontal or Vertical.. Why don't you include a screenshot? > I can't find some decente documentation on this widge

Re: g_signal_connect isn't working

2005-03-11 Thread Pier-Luc Charbonneau
Thanks to Arren and Olexiy I finaly got it working On Fri, 11 Mar 2005 09:16:58 +0200, Olexiy Avramchenko <[EMAIL PROTECTED]> wrote: > Pier-Luc Charbonneau wrote: > > static gboolean recalculate_psi_consumption(GtkWidget *widget, gpointer > > data) > This is your callback declaration. It takes 2

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

2005-03-11 Thread Iago Rubio
Hi Gus, On Fri, 2005-03-11 at 13:41 +0100, Gus Koppel wrote: > No need for that! Speaking of the Linux kernel, OPEN_MAX is a legacy > value without meaning any more. Thanks for the hint :) -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-deve

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

2005-03-11 Thread Gus Koppel
Iago Rubio wrote: > > > 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. > > > > > > What can i do

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

2005-03-11 Thread John Cupitt
On 11 Mar 2005 02:12:48 +0100, Markus Lausser <[EMAIL PROTECTED]> wrote: > run without problems: ./test 256 > run with endless loop: ./test 257 FWIW, I get: no problems: ./test 1024 breaks: ./test 1025 Linux constable 2.4.21-273-smp4G I have something like this near the start of programs of

grub focus

2005-03-11 Thread dnk
how i can grub focus to my program. i what to write a small xlocker. #include #include #include gboolean delete_event(GtkWidget* widget, GdkEvent* event, gpointer data) { fprintf(stderr,"delete event\n"); return TRUE; } gboolean focus_in_event (GtkWidget *widget, GdkEventFocus *event,

How to make toolbar without GTK_CAN_FOCUS

2005-03-11 Thread Miroslav Rajcic
I am trying to make my toolbar (with tool buttons) not to receive focus when Tab is used to move focus along the window widgets. I've tried to call GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS); to both toolbar widget and every single tool button, but it doesn't seem to work. Toolbar still gets fo

How to access gtktreeview header widgets ?

2005-03-11 Thread Miroslav Rajcic
I am having treeview with visible headers. What I need to do is to remove GTK_CAN_FOCUS flag from the header button widgets (GTK_WIDGET_UNSET_FLAGS(view, GTK_CAN_FOCUS)) . My problem is that I don't know how to access header widget(s). Is this possible ? TIA, Miroslav Rajcic _