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

Re: gEDA-user: [PATCH 1/2] gschem: line type edit dialog now uses GtkComboBox



On Fri, 2010-04-23 at 01:30 +0200, Krzysztof KoÅciuszkiewicz wrote:
> 
> -  gtk_signal_connect(GTK_OBJECT (optionmenu), "changed",
> +  gtk_signal_connect(GTK_OBJECT (type_combo), "changed", 

For future reference (and usage), gtk_signal_connect is deprecated, it
should be functionally equivalent to use g_signal_connect, although
various casts might be different.

g_signal_connect takes a GObject, but is of type (gpointer), so no cast
is required. You may need a cast to G_CALLBACK for the signal handler
function though.


-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user