Pixmap




What should I do to set a GDK_BUTTON_PRESS_MASK signal for a GtkPixmap?

      GtkWidget *pixmap;
      (...)
      gtk_widget_show (GTK_WIDGET (pixmap));
      gtk_fixed_put (GTK_FIXED (widget), GTK_WIDGET (pixmap), x, y);
      gtk_widget_set_uposition (GTK_WIDGET (pixmap), x, y);
      gtk_widget_set_events (GTK_WIDGET (pixmap),
                             GDK_BUTTON_PRESS_MASK);
      gtk_signal_connect (GTK_OBJECT (pixmap),
                          "clicked", GTK_SIGNAL_FUNC (click_cell),
NULL);

Gtk-CRITICAL **: file gtkwidget.c: line 3819 (gtk_widget_set_events):
assertion
`!GTK_WIDGET_NO_WINDOW (widget)' failed.

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

Thanks for any help.



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