[gtk+] inspector: Lower the inspector window when picking
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Lower the inspector window when picking
- Date: Thu, 5 Jun 2014 00:30:32 +0000 (UTC)
commit 23aeb955ced620bae40f38e64b412173a5e8c805
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 4 20:29:10 2014 -0400
inspector: Lower the inspector window when picking
This avoids the problem of the inspector window covering the
widget you want to pick.
gtk/inspector/inspect-button.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c
index b9d4d37..639908f 100644
--- a/gtk/inspector/inspect-button.c
+++ b/gtk/inspector/inspect-button.c
@@ -202,6 +202,8 @@ on_inspect_widget (GtkWidget *button,
{
GtkWidget *widget;
+ gdk_window_raise (gtk_widget_get_window (GTK_WIDGET (iw)));
+
clear_flash (iw);
widget = find_widget_at_pointer (gdk_event_get_device (event));
@@ -292,6 +294,8 @@ on_inspect (GtkWidget *button,
cursor, GDK_CURRENT_TIME);
g_object_unref (cursor);
gtk_grab_add (GTK_WIDGET (button));
+
+ gdk_window_lower (gtk_widget_get_window (GTK_WIDGET (iw)));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]