summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-28 11:53:50 +0000
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-28 11:53:50 +0000
commit1e47adb32ebeb88cdf9435fbed4d1fd25ee2f844 (patch)
treeb45b3e5cd583e5ef9f3353b5ac66ff424baf485d
parent11ae12abf0ac6bb90e5eabb2d205235b0ed08606 (diff)
downloadempathy-1e47adb32ebeb88cdf9435fbed4d1fd25ee2f844.tar.gz
Remove GnomeProgram, not useful anymore, drop libgnome dependency. Fixes
2007-09-28 Xavier Claessens <xclaesse@gmail.com> * 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
-rw-r--r--ChangeLog14
-rw-r--r--configure.ac2
-rw-r--r--libempathy/empathy-avatar.c6
-rw-r--r--libempathy/empathy-avatar.h3
-rw-r--r--libempathy/empathy-contact-factory.c13
-rw-r--r--libempathy/empathy-tp-group.c7
-rw-r--r--src/empathy.c14
7 files changed, 38 insertions, 21 deletions
diff --git a/ChangeLog b/ChangeLog
index 46b70860f..14932262f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
2007-09-28 Xavier Claessens <xclaesse@gmail.com>
+ * 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.
+
+2007-09-28 Xavier Claessens <xclaesse@gmail.com>
+
* libempathy/empathy-tp-group.c: Look in the local_pendings list if a
contact is already local pending.
* tests/contact-manager.c: Fix white space typo.
diff --git a/configure.ac b/configure.ac
index 92f5def93..a24797c38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,6 @@ PKG_CHECK_MODULES(EMPATHY,
libmissioncontrol >= $MISSION_CONTROL_REQUIRED
gtk+-2.0 >= $GTK_REQUIRED
libglade-2.0 >= $LIBGLADE_REQUIRED
- libgnomeui-2.0
libebook-1.2
])
@@ -239,7 +238,6 @@ if test "x$enable_python" != "xno"; then
libmissioncontrol >= $MISSION_CONTROL_REQUIRED
gtk+-2.0 >= $GTK_REQUIRED
libglade-2.0 >= $LIBGLADE_REQUIRED
- libgnomeui-2.0
], have_python="yes", have_python="no")
fi
else
diff --git a/libempathy/empathy-avatar.c b/libempathy/empathy-avatar.c
index fe4e613c6..136673110 100644
--- a/libempathy/empathy-avatar.c
+++ b/libempathy/empathy-avatar.c
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * Copyright (C) 2002-2007 Imendio AB
+ * Copyright (C) 2006 Xavier Claessens <xclaesse@gmail.com>
+ * Copyright (C) 2007 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -17,8 +18,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
- * Authors: Martyn Russell <martyn@imendio.com>
- * Xavier Claessens <xclaesse@gmail.com>
+ * Authors: Xavier Claessens <xclaesse@gmail.com>
*/
#include "config.h"
diff --git a/libempathy/empathy-avatar.h b/libempathy/empathy-avatar.h
index b3d69a8fe..390676a20 100644
--- a/libempathy/empathy-avatar.h
+++ b/libempathy/empathy-avatar.h
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2006 Xavier Claessens <xclaesse@gmail.com>
+ * Copyright (C) 2007 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -16,6 +17,8 @@
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
+ *
+ * Authors: Xavier Claessens <xclaesse@gmail.com>
*/
#ifndef __EMPATHY_AVATAR_H__
diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c
index e14914a1c..8f5c51a5c 100644
--- a/libempathy/empathy-contact-factory.c
+++ b/libempathy/empathy-contact-factory.c
@@ -213,6 +213,8 @@ contact_factory_get_presence_cb (DBusGProxy *proxy,
g_hash_table_foreach (handle_table,
(GHFunc) contact_factory_parse_presence_foreach,
account_data);
+
+ g_hash_table_destroy (handle_table);
OUT:
contact_factory_account_data_return_call (account_data);
}
@@ -229,8 +231,8 @@ contact_factory_presence_update_cb (DBusGProxy *proxy,
static void
contact_factory_set_aliases_cb (DBusGProxy *proxy,
- GError *error,
- gpointer user_data)
+ GError *error,
+ gpointer user_data)
{
ContactFactoryAccountData *account_data = user_data;
@@ -276,6 +278,7 @@ contact_factory_request_aliases_cb (DBusGProxy *proxy,
i++;
}
+ g_strfreev (contact_names);
OUT:
contact_factory_account_data_return_call (data->account_data);
g_free (data->handles);
@@ -458,6 +461,7 @@ contact_factory_get_known_avatar_tokens_cb (DBusGProxy *proxy,
account_data);
}
+ g_hash_table_destroy (tokens);
g_array_free (data.handles, TRUE);
OUT:
contact_factory_account_data_return_call (account_data);
@@ -560,9 +564,11 @@ contact_factory_get_capabilities_cb (DBusGProxy *proxy,
channel_type,
generic,
specific);
- }
+ g_value_array_free (values);
+ }
+ g_ptr_array_free (capabilities, TRUE);
OUT:
contact_factory_account_data_return_call (account_data);
}
@@ -668,6 +674,7 @@ contact_factory_request_handles_cb (DBusGProxy *proxy,
}
contact_factory_request_everything (data->account_data, handles);
+ g_array_free (handles, TRUE);
OUT:
g_list_foreach (data->contacts, (GFunc) g_object_unref, NULL);
diff --git a/libempathy/empathy-tp-group.c b/libempathy/empathy-tp-group.c
index 1ba361d17..c4f7583e9 100644
--- a/libempathy/empathy-tp-group.c
+++ b/libempathy/empathy-tp-group.c
@@ -370,6 +370,8 @@ tp_group_get_members_cb (DBusGProxy *proxy,
0, /* actor */
0, /* reason */
group);
+
+ g_array_free (handles, TRUE);
}
static void
@@ -413,7 +415,10 @@ tp_group_get_local_pending_cb (DBusGProxy *proxy,
actor_handle, /* actor */
reason, /* reason */
group);
+
+ g_value_array_free (pending_struct);
}
+ g_ptr_array_free (array, TRUE);
g_array_free (handles, TRUE);
}
@@ -441,6 +446,8 @@ tp_group_get_remote_pending_cb (DBusGProxy *proxy,
0, /* actor */
0, /* reason */
group);
+
+ g_array_free (handles, TRUE);
}
static void
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 <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libgnome/gnome-program.h>
-#include <libgnomeui/gnome-ui-init.h>
#include <libebook/e-book.h>
#include <libtelepathy/tp-conn.h>
@@ -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;
}