Re: Get position of cursor in widget?

2007-07-17 Thread Cédric Lucantis
, 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 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Image process in gdk

2007-05-20 Thread Cédric Lucantis
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. -- Cédric Lucantis ___ gtk-app-devel-list mailing list gtk-app

Re: Gtk+ and multithreating

2007-05-14 Thread Cédric Lucantis
'. 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 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Simple draw question

2007-05-06 Thread Cédric Lucantis
call to expose, shouldn't it be enough to redraw it ? Finally, note that I'm definitely not a gtk wizard, so maybe am I only saying stupid things here ;) -- Cédric Lucantis ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Simple draw question

2007-05-05 Thread Cédric Lucantis
performances, * see the docs for more infos */ gtk_widget_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

Re: Radio button

2007-03-15 Thread Cédric Lucantis
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, documented in the manual. -- Cédric Lucantis

Re: Cross compilation for windows

2007-03-02 Thread Cédric Lucantis
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 mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

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

2006-03-17 Thread Cédric Lucantis
like you already read it, but just in case there is a chapter 'Creating your own widget' in the Gtk tutorial which explains the size negotiation process. Bye, -- Cédric Lucantis ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http