[gnome-love] glade_xml_signal_connect VS g_signal_connect



Is this g_signal_connect method...

widget = glade_xml_get_widget (the_widgets, "quit_button");
g_signal_connect (G_OBJECT (widget), "clicked",
                  G_CALLBACK (time_to_quit),
                  NULL);

"Better" than this glade_xml_signal_connect method...

glade_xml_signal_connect(the_widgets,
                         "on_quit_button_clicked",
                         G_CALLBACK(time_to_quit));

I ask because it seems no one uses the latter method which leads me to
believe there's a good reason not to.

-ethan




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