Change view of GtkCheckMenuItem without trigger the action

2010-08-10 Thread KC
Hi, Is it possible to change view (check/uncheck) of GtkCheckMenuItem without trigger the connected ('toggled') callback function ? I have a GUI application which also allow control from client (from network). When user click on GtkCheckMenuItem, the application will do: User click on

How to check runtime DLL version

2010-08-10 Thread Lukas Kontenis
Hi, I'm wondering how to check the runtime version of the (glib and gtk for example) DLLs, that the application is linking to. I know one can check the version of included headers and statically linked libraries using GLIB_MAJOR_VERSION and glib_major_version, but the dynamic linking is giving

Re: how to read Gtk signal document ?

2010-08-10 Thread Tadej Borovšak
Hi. What is [1] you mentioned ? Heh, I forgot to paste a link;) [1] http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#GSignalFlags Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___

Re: How to check runtime DLL version

2010-08-10 Thread Tor Lillqvist
I'm wondering how to check the runtime version of the (glib and gtk for example) DLLs, that the application is linking to. You mean check at run-time? Using the API provided for that, if any. For GLib, use the glib_major_version, glib_minor_version and glib_micro_version variables (which are

porting gdk - cairo

2010-08-10 Thread Allin Cottrell
I gather from recent discussion on the gtk-devel list that a good deal of the old GDK drawing API may be removed for GTK 3 in favor of use of cairo: in particular GdkGC seems likely to disappear. There appear to be good arguments for this, but it means some extra work for people trying to get

Re: porting gdk - cairo

2010-08-10 Thread Dov Grobgeld
The following solution does the job though it causes flickering. - If there is a previous backing store (see below) then restore it to the underlying image. - Define the rectangle to draw by the button-press and the motion-notify-events. - Copy the four edges of below the rectangle

How to work with a gpointer argument

2010-08-10 Thread Trevor Vallender
I have a callback function which looks like: void rip( GtkWidget *widget, GdkEvent *event, gpointer source_combo_box ) { gtk_combo_box_append_text( source_combo_box, HHH); } And causes a segmentation fault whenever it is called. Why is this? I thought perhaps I need to cast the

Re: porting gdk - cairo

2010-08-10 Thread Allin Cottrell
On Tue, 10 Aug 2010, Dov Grobgeld wrote: (in response to my query about drawing a resizable outline rectangle on top of an image displayed in a GTK window, using cairo instead of the GDK drawing API) The following solution does the job though it causes flickering. - If there is a previous