[libdazzle/libdazzle-3-28] application-window: Correct ref'ing of titlebar widget
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle/libdazzle-3-28] application-window: Correct ref'ing of titlebar widget
- Date: Wed, 4 Jul 2018 21:38:38 +0000 (UTC)
commit acd086547a645d85d245ed2e7aa4d914769ee06a
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 5ac18fe..1c09705 100644
--- a/src/app/dzl-application-window.c
+++ b/src/app/dzl-application-window.c
@@ -199,7 +199,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)
{
@@ -228,7 +228,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]