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
+1 -1
View File
@@ -1973,7 +1973,7 @@ gcal_month_view_button_press (GtkWidget *widget,
if (pressed_indicator && g_hash_table_contains (ppriv->overflow_cells, GINT_TO_POINTER (clicked_cell)))
self->pressed_overflow_indicator = clicked_cell;
return TRUE;
return GDK_EVENT_PROPAGATE;
}
/**
+1 -1
View File
@@ -798,7 +798,7 @@ gcal_week_grid_button_press (GtkWidget *widget,
gtk_widget_queue_draw (widget);
return GDK_EVENT_STOP;
return GDK_EVENT_PROPAGATE;
}
static gboolean
+1 -1
View File
@@ -140,7 +140,7 @@ on_button_pressed (GcalWeekHeader *self,
gtk_widget_queue_draw (GTK_WIDGET (self));
return GDK_EVENT_STOP;
return GDK_EVENT_PROPAGATE;
}
static gboolean
+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