aboutsummaryrefslogtreecommitdiffstats
path: root/tests/interactive
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-06-11 03:02:28 +0800
committerWill Thompson <will.thompson@collabora.co.uk>2011-06-24 17:45:38 +0800
commit8f42bd47699c9453aae13f9169a27a4d9bb80bb2 (patch)
tree0b1ff39a2e0da1cf8037161283d992b008120a25 /tests/interactive
parentbf6f2b56d3a8a03cde5cee2469057d5e44933eed (diff)
downloadgsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar.gz
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar.bz2
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar.lz
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar.xz
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.tar.zst
gsoc2013-empathy-8f42bd47699c9453aae13f9169a27a4d9bb80bb2.zip
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
Diffstat (limited to 'tests/interactive')
-rw-r--r--tests/interactive/test-empathy-status-preset-dialog.c9
1 files changed, 4 insertions, 5 deletions
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 <davyd.madeley@collabora.co.uk>
+ * Authors:
+ * Danielle Madeley <danielle.madeley@collabora.co.uk>
+ * Will Thompson <will.thompson@collabora.co.uk>
*/
#include <config.h>
@@ -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;
}