aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-empathy-presence-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-empathy-presence-chooser.c')
-rw-r--r--tests/test-empathy-presence-chooser.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-empathy-presence-chooser.c b/tests/test-empathy-presence-chooser.c
index 9ca479909..02991e859 100644
--- a/tests/test-empathy-presence-chooser.c
+++ b/tests/test-empathy-presence-chooser.c
@@ -30,11 +30,14 @@
int
main (int argc, char **argv)
{
+ GtkWidget *window;
+ GtkWidget *chooser;
+
gtk_init (&argc, &argv);
empathy_gtk_init ();
- GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- GtkWidget *chooser = empathy_presence_chooser_new ();
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ chooser = empathy_presence_chooser_new ();
gtk_container_add (GTK_CONTAINER (window), chooser);
gtk_window_set_default_size (GTK_WINDOW (window), 150, -1);