Re: gdk_threads_leave in gtk callback ?

2006-03-30 Thread Gus Koppel
Vladimir wrote: > I'm writing program with several threads each of which uses gtk. > I need to wait for one of the threads in gtk-generated callback. I can't do > it directly because of gdk lock. So the question is: can I temporarily > release gdk lock in gtk-generated callback ? Will it cause any

Re: Insert image in Scrolled window

2006-03-30 Thread Sandeep KS
Christian Neumair <[EMAIL PROTECTED]> wrote: Am Donnerstag, den 30.03.2006, 10:47 -0800 schrieb Sandeep KS: > >I have a ScrolledWindow inside the main window and I have > inserted some images in the main window and i need to insert some > images inside the scrolled window also. Is it po

response to events

2006-03-30 Thread Dov Kruger
The following function attempts to turn on event trapping for all GDK events, but I only get the mouse down events, GtkWidget *create_gl_window() { GtkWidget* glwindow; glwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(glwindow), "Graphite"); gtk_container_bo

Re: Insert image in Scrolled window

2006-03-30 Thread Christian Neumair
Am Donnerstag, den 30.03.2006, 10:47 -0800 schrieb Sandeep KS: > >I have a ScrolledWindow inside the main window and I have > inserted some images in the main window and i need to insert some > images inside the scrolled window also. Is it possible to insert > images inside ScrolledWindow?

Insert image in Scrolled window

2006-03-30 Thread Sandeep KS
Hello everyone, I have a ScrolledWindow inside the main window and I have inserted some images in the main window and i need to insert some images inside the scrolled window also. Is it possible to insert images inside ScrolledWindow? I tried to insert images using gtk_fixed_put(), but

gdk_threads_leave in gtk callback ?

2006-03-30 Thread Vladimir
Hello, I'm writing program with several threads each of which uses gtk. I need to wait for one of the threads in gtk-generated callback. I can't do it directly because of gdk lock. So the question is: can I temporarily release gdk lock in gtk-generated callback ? Will it cause any problems ? --

Re: callback and menu item

2006-03-30 Thread Jerome Le Saux
2006/3/30, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > On Thursday 30 March 2006 12:15, Jerome Le Saux wrote: > If you want to do this at program startup you have to call > OnOpenDskFile by yourself in main() > > Ciao, > Tito Thanks for your answer. I want to use this function only when the item

Re: callback and menu item

2006-03-30 Thread zz
On Thursday 30 March 2006 12:15, Jerome Le Saux wrote: If you want to do this at program startup you have to call OnOpenDskFile by yourself in main() Ciao, Tito > > I want to fill the DirList Widget in the OnOpenDskFile function and to be > displayed in the scrolled_window. > What's wrong ? > >

Re: Callbacks and widgets

2006-03-30 Thread Gonzalo Aguilar Delgado
This way is one of the best I found. Ensures compatibility and as you said performance impact is minimum. Anyway, I found that using a mix of this way and using user data to set widget pointers is a tradeof between performance and memory consumption. So I set the widget dependencies with: g_ob

callback and menu item

2006-03-30 Thread Jerome Le Saux
Hi, I know that I asked you several questions about the same problem, but I am lost. I prefer to paste here the interface code, which be better to understand what I try to do. #include #include #include #include #include #include "GestDsk.h" #define EXIT_SUCESS 1 #define VERSION "ManageDsk

GtkTreeView and Hinting

2006-03-30 Thread Gonzalo Aguilar Delgado
Hello all. I'm doing an App that uses GtkTreeView a lot... I read the EXCELENT GtkTreeView tutorial and helping me a lot but... In: http://scentric.net/tutorial/sec-treeview-col-whole-row.html Says that instead of changing backgroud color (I want to change it to reflect rows changed) I should us

Re: Callbacks and widgets

2006-03-30 Thread Gus Koppel
Gonzalo Aguilar Delgado wrote: > 1.- Passing a data structure > 2.- Using global variables (not good threading support) > 3.- Passing window to gpointer and searching. > > But the point is. > > What is the best way? Is there any other way to do that? Because > structure option