empathy r2352 - trunk/tests



Author: xclaesse
Date: Fri Jan 30 17:35:26 2009
New Revision: 2352
URL: http://svn.gnome.org/viewvc/empathy?rev=2352&view=rev

Log:
Use empathy_gtk_init.

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/tests/empetit.c

Modified: trunk/tests/empetit.c
==============================================================================
--- trunk/tests/empetit.c	(original)
+++ trunk/tests/empetit.c	Fri Jan 30 17:35:26 2009
@@ -5,6 +5,7 @@
 #include <libempathy/empathy-contact-manager.h>
 #include <libempathy/empathy-dispatcher.h>
 
+#include <libempathy-gtk/empathy-ui-utils.h>
 #include <libempathy-gtk/empathy-contact-list-store.h>
 #include <libempathy-gtk/empathy-contact-selector.h>
 
@@ -54,13 +55,10 @@
   EmpathyContactManager *manager;
   EmpathyContactListStore *store;
   GtkWidget *vbox, *button, *selector;
-  gchar *icon_path;
 
   gtk_init (&argc, &argv);
 
-  icon_path = g_build_path (G_DIR_SEPARATOR_S, PKGDATADIR, "icons", NULL);
-  gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), icon_path);
-  g_free (icon_path);
+  empathy_gtk_init ();
 
   manager = empathy_contact_manager_dup_singleton ();
   store = empathy_contact_list_store_new (EMPATHY_CONTACT_LIST (manager));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]