[gnome-system-monitor] Use directly GdkEventButton in a callback
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Use directly GdkEventButton in a callback
- Date: Tue, 13 Aug 2013 13:24:41 +0000 (UTC)
commit eea6f9c0c349cfa3c4b760e7f8224b4b36740587
Author: Stefano Facchini <stefano facchini gmail com>
Date: Tue Aug 13 15:24:04 2013 +0200
Use directly GdkEventButton in a callback
src/treeview.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/treeview.c b/src/treeview.c
index 4d1fecc..119a31b 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -102,16 +102,14 @@ gsm_tree_view_get_column_from_id (GsmTreeView *tree_view, gint sort_id)
}
static gboolean
-cb_column_header_clicked (GtkTreeViewColumn* column, GdkEvent* event, gpointer data)
+cb_column_header_clicked (GtkTreeViewColumn *column, GdkEventButton *event, gpointer data)
{
GtkMenu *menu = GTK_MENU (data);
- if (event->button.button == GDK_BUTTON_SECONDARY) {
- gtk_menu_popup (menu, NULL, NULL,
- NULL,
- &(event->button),
- event->button.button,
- event->button.time);
+ if (event->button == GDK_BUTTON_SECONDARY) {
+ gtk_menu_popup (menu, NULL, NULL, NULL, NULL,
+ event->button,
+ event->time);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]