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-password.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-password.c')
-rw-r--r-- | src/dlg-password.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/dlg-password.c b/src/dlg-password.c index 7f237e6..02b8afa 100644 --- a/src/dlg-password.c +++ b/src/dlg-password.c @@ -104,16 +104,12 @@ dlg_password (GtkWidget *widget, /* Set the signals handlers. */ - g_signal_connect (G_OBJECT (data->dialog), - "destroy", - G_CALLBACK (destroy_cb), - data); - - g_signal_connect (G_OBJECT (data->dialog), - "response", - G_CALLBACK (response_cb), - data); + gtk_builder_add_callback_symbols (builder, + "on_password_dialog_destroy", G_CALLBACK (destroy_cb), + "on_password_dialog_response", G_CALLBACK (response_cb), + NULL); + gtk_builder_connect_signals (builder, data); g_object_unref (builder); /* Run dialog. */ |