[baobab] baobab-chart: fix scrolling
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] baobab-chart: fix scrolling
- Date: Thu, 8 Mar 2012 10:53:39 +0000 (UTC)
commit 66ad37228e155fe6707064109eae2dd17cc1e969
Author: Stefano Facchini <stefano facchini gmail com>
Date: Thu Mar 8 11:42:03 2012 +0100
baobab-chart: fix scrolling
After recent GTK+ changes, GDK_SCROLL_MASK must be explicitly added.
src/baobab-chart.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-chart.c b/src/baobab-chart.c
index 5af0861..d6d95d2 100644
--- a/src/baobab-chart.c
+++ b/src/baobab-chart.c
@@ -292,7 +292,7 @@ baobab_chart_realize (GtkWidget *widget)
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_OUTPUT;
attributes.visual = gtk_widget_get_visual (widget);
- attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK;
+ attributes.event_mask = gtk_widget_get_events (widget);
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
@@ -308,7 +308,8 @@ baobab_chart_realize (GtkWidget *widget)
gtk_widget_add_events (widget,
GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK |
- GDK_POINTER_MOTION_HINT_MASK | GDK_LEAVE_NOTIFY_MASK);
+ GDK_POINTER_MOTION_HINT_MASK | GDK_LEAVE_NOTIFY_MASK |
+ GDK_SCROLL_MASK);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]