[gnome-online-accounts] webview: Ensure that mouse and keyboard events reach the inspector



commit 0e2bec3a7af2dc278140259c69374271867f7700
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jun 13 16:50:35 2014 +0200

    webview: Ensure that mouse and keyboard events reach the inspector
    
    The WebKit inspector needs to be put in its own window group because
    the dialog that spawns it calls gtk_dialog_run afterwards.
    
    Fixes: https://bugzilla.gnome.org/731614

 src/goabackend/goawebview.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index 5486284..0c7c75c 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -1,6 +1,6 @@
 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
  *
- * Copyright (C) 2012, 2013 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -250,11 +250,16 @@ web_inspector_show_window_cb (WebKitWebInspector *inspector,
                               gpointer            user_data)
 {
   GtkWidget *window;
+  GtkWindowGroup *group;
+
+  group = gtk_window_group_new ();
 
   window = g_object_get_data (G_OBJECT (inspector), "window");
+  gtk_window_group_add_window (group, GTK_WINDOW (window));
   gtk_widget_show_all (window);
   gtk_window_present (GTK_WINDOW (window));
 
+  g_object_unref (group);
   return GDK_EVENT_STOP;
 }
 #endif /* GOA_INSPECTOR_ENABLED */


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