[gnome-calendar/gnome-3-24] week-view: fix signal emission on scrolled_window
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] week-view: fix signal emission on scrolled_window
- Date: Tue, 9 May 2017 00:31:09 +0000 (UTC)
commit cc8ac0b2fdcc927a616c303931f1fdd34fc0180c
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat May 6 20:52:47 2017 +0530
week-view: fix signal emission on scrolled_window
This was causing segfault in week-view
https://bugzilla.gnome.org/show_bug.cgi?id=782269
src/views/gcal-week-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/views/gcal-week-view.c b/src/views/gcal-week-view.c
index 8d7fcb4..61ebc7e 100644
--- a/src/views/gcal-week-view.c
+++ b/src/views/gcal-week-view.c
@@ -111,6 +111,7 @@ update_grid_scroll_position (GcalWeekView *self)
GtkAdjustment *vadjustment;
gdouble minutes, real_value;
gdouble max, page, page_increment, value;
+ gboolean dummy;
/* While the scrolled window is not mapped, we keep waiting */
if (!gtk_widget_get_realized (self->scrolled_window) ||
@@ -141,7 +142,8 @@ update_grid_scroll_position (GcalWeekView *self)
g_signal_emit_by_name (self->scrolled_window,
"scroll-child",
GTK_SCROLL_PAGE_FORWARD,
- FALSE);
+ FALSE,
+ &dummy);
gtk_adjustment_set_page_increment (vadjustment, page_increment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]