diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-05-23 12:51:30 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-05-23 12:51:30 +0300 |
commit | 593c7e4f4e9157052c37da6259d98d7fedc76377 (patch) | |
tree | 9309d1ee06a2a89aee6c71ee8a98f6435e6d87ff /src/rcw.c | |
parent | ef8376b15b0a3d7bc71cc4e034e7948d922a4f6b (diff) |
Casting G_CALLBACK for gtk_widget_destroyed
Diffstat (limited to 'src/rcw.c')
-rw-r--r-- | src/rcw.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1268,7 +1268,8 @@ static void rcw_migrate(RemminaConnectionWindow *from, RemminaConnectionWindow * frompage = gtk_notebook_get_nth_page(from_notebook, i); cnnobj = g_object_get_data(G_OBJECT(frompage), "cnnobj"); cnnobj->scrolled_container = rco_create_scrolled_container(cnnobj, to->priv->view_mode); - g_signal_connect(G_OBJECT(cnnobj->scrolled_container), "destroy", gtk_widget_destroyed, (gpointer)&cnnobj->scrolled_container); + g_signal_connect(G_OBJECT(cnnobj->scrolled_container), "destroy", + G_CALLBACK(gtk_widget_destroyed), (gpointer)&cnnobj->scrolled_container); newpage = rcw_append_new_page(to, cnnobj); nb_migrate_page_content(frompage, newpage); } @@ -4484,7 +4485,7 @@ GtkWidget *rcw_open_from_file_full(RemminaFile *remminafile, GCallback disconnec /* Create the scrolled container */ cnnobj->scrolled_container = rco_create_scrolled_container(cnnobj, view_mode); - g_signal_connect(G_OBJECT(cnnobj->scrolled_container), "destroy", gtk_widget_destroyed, (gpointer)&cnnobj->scrolled_container); + g_signal_connect(G_OBJECT(cnnobj->scrolled_container), "destroy", G_CALLBACK(gtk_widget_destroyed), (gpointer)&cnnobj->scrolled_container); gtk_container_add(GTK_CONTAINER(cnnobj->scrolled_container), cnnobj->viewport); |