[libdazzle: 1/2] application-window: Correct ref'ing of titlebar widget
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 1/2] application-window: Correct ref'ing of titlebar widget
- Date: Wed, 4 Jul 2018 21:36:17 +0000 (UTC)
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]