diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2008-04-11 21:39:16 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2008-04-11 21:39:16 +0000 |
commit | f9f87904c43d34561deca1b89a42ca014a1c20f1 (patch) | |
tree | 7cc7aae14329930ca23cbd036474474f4dec1c78 /gtk/expert_comp_dlg.c | |
parent | 9af9a0e6195eab26612f20fb55d4be3603344d0d (diff) |
second round to replace SIGNAL_CONNECT with g_signal_connect
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time.
Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ...
svn path=/trunk/; revision=24913
Diffstat (limited to 'gtk/expert_comp_dlg.c')
-rw-r--r-- | gtk/expert_comp_dlg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/expert_comp_dlg.c b/gtk/expert_comp_dlg.c index 537c01e147..c2a23de424 100644 --- a/gtk/expert_comp_dlg.c +++ b/gtk/expert_comp_dlg.c @@ -249,8 +249,8 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_) return; } - SIGNAL_CONNECT(etd->win, "delete_event", window_delete_event_cb, NULL); - SIGNAL_CONNECT(etd->win, "destroy", expert_dlg_destroy_cb, etd); + g_signal_connect(etd->win, "delete_event", G_CALLBACK(window_delete_event_cb), NULL); + g_signal_connect(etd->win, "destroy", G_CALLBACK(expert_dlg_destroy_cb), etd); /* Register the tap listener */ @@ -275,12 +275,12 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_) if(topic_available(HELP_EXPERT_INFO_DIALOG)) { help_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_HELP); - SIGNAL_CONNECT(help_bt, "clicked", topic_cb, HELP_EXPERT_INFO_DIALOG); + g_signal_connect(help_bt, "clicked", G_CALLBACK(topic_cb), (gpointer)HELP_EXPERT_INFO_DIALOG); gtk_tooltips_set_tip (tooltips, help_bt, "Show topic specific help", NULL); } - SIGNAL_CONNECT(ss->win, "delete_event", window_delete_event_cb, NULL); - SIGNAL_CONNECT(ss->win, "destroy", win_destroy_cb, ss); + g_signal_connect(ss->win, "delete_event", G_CALLBACK(window_delete_event_cb), NULL); + g_signal_connect(ss->win, "destroy", G_CALLBACK(win_destroy_cb), ss); gtk_widget_show_all(ss->win); window_present(ss->win); |