76 +bamf_mock_window_set_transient (BamfMockWindow *self, BamfWindow* transient) 77 +{ 78 + g_return_if_fail (BAMF_IS_MOCK_WINDOW (self)); 79 + self->priv->transient = g_object_ref(transient); 80 +}
Mhmh... Probably it's better not to ref it here, since the parent window can be also closed... Probably it's better to add a weak ref instead.
« Back to merge proposal
76 +bamf_mock_ window_ set_transient (BamfMockWindow *self, BamfWindow* transient) MOCK_WINDOW (self)); >transient = g_object_ ref(transient) ;
77 +{
78 + g_return_if_fail (BAMF_IS_
79 + self->priv-
80 +}
Mhmh... Probably it's better not to ref it here, since the parent window can be also closed... Probably it's better to add a weak ref instead.