]> git.0d.be Git - empathy.git/blob - tests/interactive/test-empathy-contact-blocking-dialog.c
tests: simplify running blocking dialog
[empathy.git] / tests / interactive / test-empathy-contact-blocking-dialog.c
1 /*
2  * Copyright (C) 2011 Collabora Ltd.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  *
19  * Authors: Danielle Madeley <danielle.madeley@collabora.co.uk>
20  */
21
22 #include <config.h>
23
24 #include <gtk/gtk.h>
25
26 #include <libempathy/empathy-contact-manager.h>
27
28 #include <libempathy-gtk/empathy-ui-utils.h>
29 #include <libempathy-gtk/empathy-contact-blocking-dialog.h>
30
31 int
32 main (int argc,
33     char **argv)
34   {
35     EmpathyContactManager *manager;
36     GtkWidget *dialog;
37
38     gtk_init (&argc, &argv);
39     empathy_gtk_init ();
40
41     manager = empathy_contact_manager_dup_singleton ();
42     dialog = empathy_contact_blocking_dialog_new (NULL);
43
44     gtk_dialog_run (GTK_DIALOG (dialog));
45
46     g_object_unref (manager);
47     return 0;
48   }