[recipes] Don't forget to unexport window



commit 0e27e9d2d0604204e2461349f44186eb0b12a159
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 14 18:43:28 2017 -0500

    Don't forget to unexport window
    
    Not doing so may lead to problems under Wayland.

 src/gr-account.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-account.c b/src/gr-account.c
index 271663c..3c4fa3b 100644
--- a/src/gr-account.c
+++ b/src/gr-account.c
@@ -28,6 +28,7 @@
 #include <glib/gi18n.h>
 
 typedef struct {
+        GtkWindow *window;
         AccountInformationCallback callback;
         gpointer data;
         GDestroyNotify destroy;
@@ -40,6 +41,8 @@ free_callback_data (gpointer data)
 {
         CallbackData *cbdata = data;
 
+        window_unexport_handle (cbdata->window);
+
         if (cbdata->destroy)
                 cbdata->destroy (cbdata->data);
 
@@ -173,6 +176,7 @@ gr_account_get_information (GtkWindow                  *window,
 
         cbdata = g_new (CallbackData, 1);
 
+        cbdata->window = window;
         cbdata->callback = callback;
         cbdata->data = data;
         cbdata->destroy = destroy;


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