[libdazzle: 1/2] application-window: Correct ref'ing of titlebar widget



commit b6ec0a8e3ed882cfcab8f67f171ebb47c69c89cb
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Wed Jul 4 21:39:03 2018 +0200

    application-window: Correct ref'ing of titlebar widget
    
    This changes object refing of titlebar_revealer to titlebar as this is the widget that get's removed and 
attached again. Otherwise we will fault during transition to fullscreen due to freeing titlebar widget.

 src/app/dzl-application-window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app/dzl-application-window.c b/src/app/dzl-application-window.c
index 96e3b5d..24e0d02 100644
--- a/src/app/dzl-application-window.c
+++ b/src/app/dzl-application-window.c
@@ -200,7 +200,7 @@ dzl_application_window_complete_fullscreen (DzlApplicationWindow *self)
    * it before performing further (destructive) work.
    */
 
-  g_object_ref (priv->titlebar_revealer);
+  g_object_ref (titlebar);
 
   if (priv->fullscreen)
     {
@@ -229,7 +229,7 @@ dzl_application_window_complete_fullscreen (DzlApplicationWindow *self)
         }
     }
 
-  g_object_unref (priv->titlebar_revealer);
+  g_object_unref (titlebar);
 
   return G_SOURCE_REMOVE;
 }


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