[gnome-software] Make screenshot selection work again
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Make screenshot selection work again
- Date: Mon, 1 Sep 2014 18:35:17 +0000 (UTC)
commit 6638eaf50d8485b55add7fbcf6fe0ccaf40b9391
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 31 11:09:34 2014 -0400
Make screenshot selection work again
This is a workaround for some yet-to-be-diagnosed GTK+
gesture fallout. The stack we use for each screenshot has
a window. Setting the event mask explicitly ensures that we
get button events, which will then bubble up the listbox
which maintains the selection.
https://bugzilla.gnome.org/show_bug.cgi?id=735712
src/gs-screenshot-image.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 55b94f3..06629fd 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -454,6 +454,11 @@ gs_screenshot_image_init (GsScreenshotImage *ssimg)
gtk_widget_set_has_window (GTK_WIDGET (ssimg), FALSE);
gtk_widget_init_template (GTK_WIDGET (ssimg));
+ gtk_widget_add_events (ssimg->priv->stack, GDK_BUTTON_PRESS_MASK |
+ GDK_BUTTON_RELEASE_MASK |
+ GDK_TOUCH_MASK |
+ GDK_ENTER_NOTIFY_MASK |
+ GDK_LEAVE_NOTIFY_MASK);
accessible = gtk_widget_get_accessible (GTK_WIDGET (ssimg));
if (accessible != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]