Re: [gtk-list] new signal GtkWidget::user_signal?



On Sun, 25 Jan 1998, Tim Janik wrote:

> hello everybody,
> 
> i'd like to have an additional signal supported by the GtkWidget base class.
> 
> GtkWidget:user_signal
> 
> one can connect to the signal as usual via
> 
> gtk_signal_connect (GTK_OBJECT (MyButton),
> 		    "user_signal",
> 		    GTK_SIGNAL_FUNC (MySignalFunc),
> 		    my_func_data);
> 
> or via
> gtk_widget_set (MyButton,
> 		"GtkWidget::user_signal", MySignalFunc, my_func_data,
		^^^^^^^^^^^^^^^^^^^^^^^^
		this should have read
		"GtkObject::signal::user_signal",
		sorry for the confusion.
		
> 		NULL);
> 
> 
> user_type is meant to distinguish different signal emissions by passing
> a.g. an enumeration value that MySignalFunc() could switch() on.
> 
> 
> comments, objections?

none so far? ;)

> 
> ---
> ciaoTJ
> 

---
ciaoTJ



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