, 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
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
'. 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
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
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
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
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
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