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 previou
Hi.
> void rip( GtkWidget *widget, GdkEvent *event, gpointer
> source_combo_box )
You're getting a segfault because GtkButton::clicked signal[1] has
only 2 arguments: a GtkButton and user provided data. Your function
should be defined as:
void
rip (GtkWidget *button,
gpointer source_combo_
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 source_combo
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
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 their
> 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 e
On Tue, Aug 10, 2010 at 3:35 PM, Tadej Borovšak wrote:
> 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
Got it, thanks a lot.
KC
> Tadej
>
> --
> Tadej Borovšak
> tadeboro.blogs
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
___
gtk
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 me