]> git.0d.be Git - empathy.git/commitdiff
PresetDialog test: quit cleanly
authorWill Thompson <will.thompson@collabora.co.uk>
Fri, 10 Jun 2011 19:02:28 +0000 (20:02 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Fri, 24 Jun 2011 09:45:38 +0000 (10:45 +0100)
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

index 6602e4f283767b9aefb0a1b97b6cb25dff4cf4fa..e71852509278bfac838f0f692e5e5e2574a4110e 100644 (file)
@@ -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;
 }