[gimp/metadata-browser] app: remove checks for grab time consistency
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: remove checks for grab time consistency
- Date: Wed, 12 Sep 2012 22:26:04 +0000 (UTC)
commit 462b3dd42d09c13c90036a7a36e2f13c0d92987c
Author: Michael Natterer <mitch gimp org>
Date: Sun Dec 11 16:39:01 2011 +0100
app: remove checks for grab time consistency
because tests need to be able to pass GDK_CURRENT_TIME here, which is
a legal argument to grab functions. Fixes distcheck.
app/display/gimpdisplayshell-grab.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-grab.c b/app/display/gimpdisplayshell-grab.c
index b0febc1..2ca9c1a 100644
--- a/app/display/gimpdisplayshell-grab.c
+++ b/app/display/gimpdisplayshell-grab.c
@@ -34,7 +34,6 @@ gimp_display_shell_pointer_grab (GimpDisplayShell *shell,
{
g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), FALSE);
g_return_val_if_fail (shell->pointer_grabbed == FALSE, FALSE);
- g_return_val_if_fail (shell->pointer_grab_time == 0, FALSE);
if (event)
{
@@ -67,7 +66,6 @@ gimp_display_shell_pointer_ungrab (GimpDisplayShell *shell,
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (shell->pointer_grabbed == TRUE);
- g_return_if_fail (event == NULL || shell->pointer_grab_time != 0);
gtk_grab_remove (shell->canvas);
@@ -91,7 +89,6 @@ gimp_display_shell_keyboard_grab (GimpDisplayShell *shell,
g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
g_return_val_if_fail (shell->keyboard_grabbed == FALSE, FALSE);
- g_return_val_if_fail (shell->keyboard_grab_time == 0, FALSE);
status = gdk_keyboard_grab (gtk_widget_get_window (shell->canvas),
FALSE,
@@ -117,7 +114,6 @@ gimp_display_shell_keyboard_ungrab (GimpDisplayShell *shell,
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (event != NULL);
g_return_if_fail (shell->keyboard_grabbed == TRUE);
- g_return_if_fail (shell->keyboard_grab_time != 0);
gdk_display_keyboard_ungrab (gtk_widget_get_display (shell->canvas),
shell->keyboard_grab_time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]