Re: [gtk-list] Pixmap



Pedro Medeiros <pjira@solar.com.br> writes:
> What should I do to set a GDK_BUTTON_PRESS_MASK signal for a GtkPixmap?
> 
... 
> Gtk-CRITICAL **: file gtkwidget.c: line 3819 (gtk_widget_set_events):
> assertion
> `!GTK_WIDGET_NO_WINDOW (widget)' failed.
> 

Put the pixmap in an event box, and set the mask on the event box.

> Gtk-WARNING **: gtk_signal_connect(): could not find signal "clicked" in
> the
> `GtkPixmap' class ancestry
> 

Connect to button_press_event on the event box.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]