Correct way to use the g_connect_signal
- From: Tomaz Canabrava <tumaix gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Correct way to use the g_connect_signal
- Date: Wed, 7 Dec 2005 23:02:08 -0300
hy all.;
i'm having a little trouble here, when trying to get the data passed to a
funcgion with the g_signal_connect:
void btnAddRevistaClick(GtkWidget Widget, gpointer data){
addComic *bleh = (addComic *) data;
gtk_widget_show_all(bleh->window);
}
void mostraGuiPrincipal(GuiPrincipal *Gui, GladeXML *xml){
Gui->btnAddComic = glade_xml_get_widget(xml, "btnAddComic");
g_signal_connect(G_OBJECT(Gui->btnAddComic), "activate",
G_CALLBACK(btnAddComicClick), (gpointer) Gui->wndComic);
gtk_widget_show_all(Gui->Window);
}
--
Um Computador sem Windows é como um Navio sem dançarinas de Can-Can
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]