summaryrefslogtreecommitdiff
path: root/src/dlg-password.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlg-password.c')
-rw-r--r--src/dlg-password.c14
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. */