diff options
author | rbuj <[email protected]> | 2020-04-14 13:21:22 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-06-05 14:38:12 +0200 |
commit | 4a0d9903b8f6b33b73b2e2bc578c9a237c67b4b3 (patch) | |
tree | 53bb6898ebb505c912c6c935a80288e95c2cc6f6 /src/dlg-update.c | |
parent | c60e1cfb6c4296bcc9c4f05da3484f22e7f15770 (diff) | |
download | engrampa-4a0d9903b8f6b33b73b2e2bc578c9a237c67b4b3.tar.bz2 engrampa-4a0d9903b8f6b33b73b2e2bc578c9a237c67b4b3.tar.xz |
Use callback symbols defined in ui files
Diffstat (limited to 'src/dlg-update.c')
-rw-r--r-- | src/dlg-update.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/dlg-update.c b/src/dlg-update.c index 41d3115..50405ff 100644 --- a/src/dlg-update.c +++ b/src/dlg-update.c @@ -299,26 +299,20 @@ dlg_update (FrWindow *window) /* Set the signals handlers. */ - g_signal_connect (G_OBJECT (data->update_file_dialog), - "destroy", - G_CALLBACK (dlg_update__destroy_cb), - data); - g_signal_connect (gtk_builder_get_object (builder, "update_file_ok_button"), - "clicked", - G_CALLBACK (update_cb), - data); + gtk_builder_add_callback_symbols (builder, + "on_update_file_dialog_destroy", G_CALLBACK (dlg_update__destroy_cb), + "update_file_ok_button_clicked", G_CALLBACK (update_cb), + "on_update_files_dialog_destroy", G_CALLBACK (dlg_update__destroy_cb), + "update_file_ok_button_clicked", G_CALLBACK (update_cb), + NULL); + + gtk_builder_connect_signals (builder, data); + g_signal_connect_swapped (gtk_builder_get_object (builder, "update_file_cancel_button"), "clicked", G_CALLBACK (gtk_widget_destroy), G_OBJECT (data->update_file_dialog)); - g_signal_connect (G_OBJECT (data->update_files_dialog), - "destroy", - G_CALLBACK (dlg_update__destroy_cb), - data); - g_signal_connect (G_OBJECT (data->update_files_ok_button), - "clicked", - G_CALLBACK (update_cb), - data); + g_signal_connect_swapped (gtk_builder_get_object (builder, "update_files_cancel_button"), "clicked", G_CALLBACK (gtk_widget_destroy), |