Re: Get position of cursor in widget?

2007-07-17 Thread Cédric Lucantis
elative to the screen origin. If you're not in a handler, you still have gdk_window_get_pointer() and gdk_display_get_pointer(). See the Gdk reference manual for more infos (sections 'Event structures', 'Windows' and 'Display'). -- Cédric Lucantis _

Re: Image process in gdk

2007-05-20 Thread Cédric Lucantis
th > cairo? There's also a complete example in the tutorial (scribble). Cairo is a vector graphics lib, which is very different from bitmap graphics. I never used it, so I don't know if it's easier, it's just another world and the choice depends on what you want to do. --

Re: Gtk+ and multithreating

2007-05-14 Thread Cédric Lucantis
Pools' and 'Asynchronous Queues' under 'Glib Core Application Support'. If you want to know more, there's a tutorial here (about pthread but with a general introduction) : http://www.llnl.gov/computing/tutorials/pthreads -- Cédric Lucantis

Re: Simple draw question

2007-05-06 Thread Cédric Lucantis
ng an 'update_area' for each window and thus only redrawing the dirty part of it when nothing else has to be done (this is managed by an idle event). But even if you get only one call to expose, shouldn't it be enough to redraw it ? Finally, note that I'm definitely not a gtk wi

Re: Simple draw question

2007-05-05 Thread Cédric Lucantis
idget_queue_draw(widget); } leave_button_callback() { /* same with GTK_STATE_NORMAL */ } expose_button_callback() { gdk_draw_rectangle(widget->window, widget->state->fg_gc[widget->state], ...) } -- Cédric Lucantis ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Radio button

2007-03-15 Thread Cédric Lucantis
thin its > allocation rectangle. > > I want the button and the label to be centered in the allocation rectangle. > > The machines on which my application will be deployed are running Gtk > version 2.0. > > Thanks in advance for any help. You need a GtkAlignment widget, d

Re: Cross compilation for windows

2007-03-02 Thread Cédric Lucantis
or me, but I'm only using glib, not gtk so I can't help for it. Anyway you'll probably prefer to use the prebuild packages available on gtk.org (follow the Projects/GTK+ for Win32 link) -- Cédric Lucantis ___ gtk-app-devel-list mailin

Re: Need your help on the widget's width and height

2006-03-17 Thread Cédric Lucantis
e ? > >Any help would be much appreciated ! The GtkAspectFrame widget seems to be what you are looking for. You can probably use it or at least have a look at its source code. It looks like you already read it, but just in case there is a chapter 'Creating your own widget' i

Re: Question about GdkColor

2006-03-17 Thread Cédric Lucantis
t absolutely correct because the 8 bit value 0xff (255) will become 0xff00 (and should be 0x), but this won't probably be noticiable (because most video cards are limited to 8 bits channels, and anyway most human people wouldn't see the difference:). If you w