search-view: hide if click is performed outside

Result drop down should disappear when any click is performed outside
that drop down.

https://bugzilla.gnome.org/show_bug.cgi?id=74796

https://bugzilla.gnome.org/show_bug.cgi?id=747962
This commit is contained in:
Kevin Lopez
2017-05-04 08:55:50 -03:00
committed by Georges Basile Stavracas Neto
parent a6e347d8f2
commit ec3ef0d0a3
5 changed files with 45 additions and 6 deletions
+2 -2
View File
@@ -1135,7 +1135,7 @@ navigator_button_press_cb (GcalYearView *year_view,
gboolean is_title = FALSE;
if (!calculate_day_month_for_coord (year_view, event->x, event->y, &day, &month, &is_title))
return FALSE;
return GDK_EVENT_PROPAGATE;
if (is_title)
day = 1;
@@ -1144,7 +1144,7 @@ navigator_button_press_cb (GcalYearView *year_view,
year_view->selected_data->start_day = day;
year_view->selected_data->start_month = month;
return TRUE;
return GDK_EVENT_PROPAGATE;
}
static gboolean