[empathy: 4/5] tests: simplify running blocking dialog
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 4/5] tests: simplify running blocking dialog
- Date: Tue, 16 Aug 2011 11:23:03 +0000 (UTC)
commit 6ac9f42fa93a79064c4b69828cc8354114f1b2f0
Author: Will Thompson <will thompson collabora co uk>
Date: Mon Aug 8 23:46:55 2011 +0200
tests: simplify running blocking dialog
This is reminiscent of 8f42bd4.
.../test-empathy-contact-blocking-dialog.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/tests/interactive/test-empathy-contact-blocking-dialog.c b/tests/interactive/test-empathy-contact-blocking-dialog.c
index 6c5615e..801bd0b 100644
--- a/tests/interactive/test-empathy-contact-blocking-dialog.c
+++ b/tests/interactive/test-empathy-contact-blocking-dialog.c
@@ -41,15 +41,8 @@ main (int argc,
manager = empathy_contact_manager_dup_singleton ();
dialog = empathy_contact_blocking_dialog_new (NULL);
- g_signal_connect_swapped (dialog, "response",
- G_CALLBACK (gtk_main_quit), NULL);
+ gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_show (dialog);
-
- gtk_main ();
-
- gtk_widget_destroy (dialog);
g_object_unref (manager);
-
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]