/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2007 Raphael Slinckx <raphael@slinckx.net>
- * Copyright (C) 2007 Collabora Ltd.
+ * Copyright (C) 2007-2008 Collabora Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Authors: Raphael Slinckx <raphael@slinckx.net>
*/
-#include <gtk/gtktreeview.h>
-
-#include <libempathy/empathy-debug.h>
+#include <gtk/gtk.h>
#include "empathy-cell-renderer-activatable.h"
-#define DEBUG_DOMAIN "CellRendererActivatable"
-
static void empathy_cell_renderer_activatable_init (EmpathyCellRendererActivatable *cell);
static void empathy_cell_renderer_activatable_class_init (EmpathyCellRendererActivatableClass *klass);
static gboolean cell_renderer_activatable_activate (GtkCellRenderer *cell,
activatable = EMPATHY_CELL_RENDERER_ACTIVATABLE (cell);
- if (!GTK_IS_TREE_VIEW (widget) ||
+ if (!GTK_IS_TREE_VIEW (widget) || event == NULL ||
event->type != GDK_BUTTON_PRESS) {
return FALSE;
}