GtkCList + gtk_menu_popup() = ???




Hi!
I want a pop-up menu to appear when a user clicks on a row in the CList.
The tutorial says I have to do this:

gtk_signal_connect_object(GTK_OBJECT(widget), "event",
			  GTK_SIGNAL_FUNC (handler),
			  GTK_OBJECT(menu)); 

But if I put "event", it catches ANY event, so I can't draw in CList. If,
however, I put "select_row" the program segfaults. Does anyone know how to
marry CList and pop-up menus?

Thanks,
		Sergei




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