From 1e47adb32ebeb88cdf9435fbed4d1fd25ee2f844 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 28 Sep 2007 11:53:50 +0000 Subject: Remove GnomeProgram, not useful anymore, drop libgnome dependency. Fixes 2007-09-28 Xavier Claessens * configure.ac: * src/empathy.c: Remove GnomeProgram, not useful anymore, drop libgnome dependency. Fixes bug #442079 * libempathy/empathy-avatar.c: * libempathy/empathy-avatar.h: Fix Copyright header. * libempathy/empathy-contact-factory.c: * libempathy/empathy-tp-group.c: Free return value for async DBus calls, they are not owned by dbus-glib. This fix big leaks, thanks again to valgrind. svn path=/trunk/; revision=330 --- src/empathy.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/empathy.c b/src/empathy.c index e1a32a0b6..a1c521369 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -28,8 +28,6 @@ #include #include -#include -#include #include #include @@ -265,7 +263,6 @@ main (int argc, char *argv[]) McAccountMonitor *monitor; EmpathyIdle *idle; EmpathyChandler *chandler; - GnomeProgram *program; gboolean no_connect = FALSE; GOptionContext *context; GOptionEntry options[] = { @@ -287,15 +284,7 @@ main (int argc, char *argv[]) g_set_application_name (PACKAGE_NAME); - program = gnome_program_init ("empathy", - PACKAGE_VERSION, - LIBGNOMEUI_MODULE, - argc, argv, - GNOME_PROGRAM_STANDARD_PROPERTIES, - "goption-context", context, - GNOME_PARAM_HUMAN_READABLE_NAME, PACKAGE_NAME, - NULL); - + gtk_init (&argc, &argv); gtk_window_set_default_icon_name ("empathy"); gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), DATADIR G_DIR_SEPARATOR_S "empathy"); @@ -339,7 +328,6 @@ main (int argc, char *argv[]) g_object_unref (mc); g_object_unref (idle); g_object_unref (icon); - g_object_unref (program); return EXIT_SUCCESS; } -- cgit v1.2.3