[empathy] start_gnome_contacts: make sure individual is valid
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] start_gnome_contacts: make sure individual is valid
- Date: Fri, 10 Feb 2012 11:58:51 +0000 (UTC)
commit c9c63f5412fbf6f7927c857c7f8f04082abbccde
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Feb 10 12:58:38 2012 +0100
start_gnome_contacts: make sure individual is valid
libempathy-gtk/empathy-individual-menu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index 293647a..7b8da52 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -1311,6 +1311,8 @@ start_gnome_contacts (FolksIndividual *individual,
GdkAppLaunchContext *context = NULL;
GdkDisplay *display;
+ g_return_if_fail (FOLKS_IS_INDIVIDUAL (individual));
+
/* Start gnome-contacts */
display = gdk_display_get_default ();
context = gdk_display_get_app_launch_context (display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]