[gnome-calendar/ui-rewrite] gcal-month-view: fixed drawing issue



commit ad8a450bebeb36b2e268b754a7ca417329ce6c35
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Jun 30 17:40:00 2013 -0400

    gcal-month-view: fixed drawing issue
    
    Fixed drawing issue with :mark_current_unit method

 src/gcal-month-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 45ad535..b6e9169 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -840,7 +840,8 @@ gcal_month_view_motion_notify_event (GtkWidget      *widget,
 
   priv = gcal_month_view_get_instance_private (GCAL_MONTH_VIEW (widget));
 
-  if (priv->start_mark_cell == -1)
+  if (priv->start_mark_cell == -1 ||
+      priv->clicked_cell == -1)
     return FALSE;
 
   width = gtk_widget_get_allocated_width (widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]