53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
|
From 4ef90701cfbc1dfdef71299d495339185d1b910a Mon Sep 17 00:00:00 2001
|
||
|
From: Christophe Fergeau <cfergeau@redhat.com>
|
||
|
Date: Mon, 18 Aug 2014 19:14:17 +0200
|
||
|
Subject: [PATCH] Chain up to parent constructor in 'constructed' vfuncs
|
||
|
|
||
|
Since gtk+ commit
|
||
|
commit 9c37b3de7466a22d4c784657a86c522e2a4f118a
|
||
|
Author: Jasper St. Pierre <jstpierre@mecheye.net>
|
||
|
Date: Thu Jun 26 18:22:42 2014 -0400
|
||
|
|
||
|
gtk: Don't use GObjectClass.constructor
|
||
|
|
||
|
Use the newer constructed instead, which has a fast path in GObject.
|
||
|
|
||
|
brasero crashes at startup. This is caused by some 'constructed'
|
||
|
implementations which don't' chain up to the parent class.
|
||
|
|
||
|
https://bugzilla.gnome.org/show_bug.cgi?id=732692
|
||
|
---
|
||
|
libbrasero-burn/brasero-tool-dialog.c | 2 ++
|
||
|
libbrasero-media/brasero-medium-selection.c | 2 ++
|
||
|
2 files changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/libbrasero-burn/brasero-tool-dialog.c b/libbrasero-burn/brasero-tool-dialog.c
|
||
|
index df5dccf..b0019b5 100644
|
||
|
--- a/libbrasero-burn/brasero-tool-dialog.c
|
||
|
+++ b/libbrasero-burn/brasero-tool-dialog.c
|
||
|
@@ -510,6 +510,8 @@ brasero_tool_dialog_constructed (GObject *object)
|
||
|
{
|
||
|
BraseroToolDialogPrivate *priv;
|
||
|
|
||
|
+ G_OBJECT_CLASS (brasero_tool_dialog_parent_class)->constructed (object);
|
||
|
+
|
||
|
priv = BRASERO_TOOL_DIALOG_PRIVATE (object);
|
||
|
|
||
|
brasero_medium_selection_show_media_type (BRASERO_MEDIUM_SELECTION (priv->selector),
|
||
|
diff --git a/libbrasero-media/brasero-medium-selection.c b/libbrasero-media/brasero-medium-selection.c
|
||
|
index 858b1d1..47dc75f 100644
|
||
|
--- a/libbrasero-media/brasero-medium-selection.c
|
||
|
+++ b/libbrasero-media/brasero-medium-selection.c
|
||
|
@@ -823,6 +823,8 @@ brasero_medium_selection_medium_removed_cb (BraseroMediumMonitor *monitor,
|
||
|
static void
|
||
|
brasero_medium_selection_constructed (GObject *object)
|
||
|
{
|
||
|
+ G_OBJECT_CLASS (brasero_medium_selection_parent_class)->constructed (object);
|
||
|
+
|
||
|
brasero_medium_selection_set_show_used_space (BRASERO_MEDIUM_SELECTION (object));
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.1.0
|
||
|
|