[gtk/wip/carlosg/input-cleanups: 19/26] gtkprintoperation-win32: Don't track grab-notify
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/input-cleanups: 19/26] gtkprintoperation-win32: Don't track grab-notify
- Date: Wed, 24 Jun 2020 18:38:05 +0000 (UTC)
commit 1f798643c87bea1036803a357e65ed17ffbcc4eb
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 24 15:37:11 2020 +0200
gtkprintoperation-win32: Don't track grab-notify
Further grabs could presumably only come from events handled within
the dialog itself. It seems overeager to do this.
gtk/gtkprintoperation-win32.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c
index 2b9ec44b75..ad430760d4 100644
--- a/gtk/gtkprintoperation-win32.c
+++ b/gtk/gtkprintoperation-win32.c
@@ -1395,15 +1395,6 @@ print_callback_new (void)
return &callback->iPrintDialogCallback;
}
-static void
-plug_grab_notify (GtkWidget *widget,
- gboolean was_grabbed,
- GtkPrintOperation *op)
-{
- EnableWindow (GetAncestor (GDK_SURFACE_HWND (gtk_native_get_surface (gtk_widget_get_native (widget))),
GA_ROOT),
- was_grabbed);
-}
-
static INT_PTR CALLBACK
pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
{
@@ -1429,9 +1420,6 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
/* This dialog is modal, so we grab the embed widget */
gtk_grab_add (plug);
-
- /* When we lose the grab we need to disable the print dialog */
- g_signal_connect (plug, "grab-notify", G_CALLBACK (plug_grab_notify), op);
return FALSE;
}
else if (message == WM_DESTROY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]