[epiphany/overview: 26/26] ephy-removable-pixbuf-renderer: fetch the last event on activation
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview: 26/26] ephy-removable-pixbuf-renderer: fetch the last event on activation
- Date: Tue, 17 Jul 2012 10:37:55 +0000 (UTC)
commit 94bf0e420fb438396feb2be6846676933b58bfc2
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Jul 17 13:27:14 2012 +0300
ephy-removable-pixbuf-renderer: fetch the last event on activation
Workaround gtk+ bug #676030.
lib/widgets/ephy-removable-pixbuf-renderer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-removable-pixbuf-renderer.c b/lib/widgets/ephy-removable-pixbuf-renderer.c
index 21d4701..81e5776 100644
--- a/lib/widgets/ephy-removable-pixbuf-renderer.c
+++ b/lib/widgets/ephy-removable-pixbuf-renderer.c
@@ -113,8 +113,8 @@ ephy_removable_pixbuf_renderer_activate (GtkCellRenderer *cell,
const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
- GdkEventButton *ev = (GdkEventButton *) event;
GdkRectangle icon_area;
+ GdkEventButton *ev = (GdkEventButton *) gtk_get_current_event();
GdkPixbuf *icon = gtk_widget_render_icon_pixbuf (widget, GTK_STOCK_CLOSE,
GTK_ICON_SIZE_BUTTON);
get_icon_rectangle (widget, cell, cell_area, icon, &icon_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]