From 8f42bd47699c9453aae13f9169a27a4d9bb80bb2 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 10 Jun 2011 20:02:28 +0100 Subject: PresetDialog test: quit cleanly Previously one had to kill the process, but by just switching to gtk_dialog_run() we get more functionality for less code. :D --- tests/interactive/test-empathy-status-preset-dialog.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/interactive') diff --git a/tests/interactive/test-empathy-status-preset-dialog.c b/tests/interactive/test-empathy-status-preset-dialog.c index 6602e4f28..e71852509 100644 --- a/tests/interactive/test-empathy-status-preset-dialog.c +++ b/tests/interactive/test-empathy-status-preset-dialog.c @@ -17,7 +17,9 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * - * Authors: Davyd Madeley + * Authors: + * Danielle Madeley + * Will Thompson */ #include @@ -40,10 +42,7 @@ main (int argc, char **argv) empathy_status_presets_get_all (); dialog = empathy_status_preset_dialog_new (NULL); - - gtk_widget_show (dialog); - - gtk_main (); + gtk_dialog_run (GTK_DIALOG (dialog)); return 0; } -- cgit v1.2.1