GTK problem
- From: Trever Adams <arabian onramp net>
- To: gtk-list redhat com
- Subject: GTK problem
- Date: Tue, 07 Apr 1998 14:43:32 -0500
Below is a segment of code that seems like the hard way of doing
something. Notice the strings "changed" "clicked" and "value_changed"
in this code fragment and your own code. Why do we use strings instead
of constants/defines? It takes more to compare strings than constants.
Is there a good reason to do it this way instead?
gtk_signal_connect(GTK_OBJECT(sdata[i]), "value_changed",
GTK_SIGNAL_FUNC(update_sliders), NULL);
gtk_signal_connect(GTK_OBJECT(entry[i]), "changed",
GTK_SIGNAL_FUNC(update_labels), NULL);
Trever Adams
arabian@onramp.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]