window: Use g_set_object

No need to do the same thing manually.
This commit is contained in:
Matthias Clasen 2015-11-30 20:45:57 -05:00
parent a3ce702a5a
commit d908c38ec3

View File

@ -12430,11 +12430,5 @@ gtk_window_set_hardcoded_window (GtkWindow *window,
g_return_if_fail (GTK_IS_WINDOW (window));
g_return_if_fail (!_gtk_widget_get_realized (GTK_WIDGET (window)));
if (priv->hardcoded_window)
g_object_unref (priv->hardcoded_window);
priv->hardcoded_window = gdk_window;
if (gdk_window)
g_object_ref (gdk_window);
g_set_object (&priv->hardcoded_window, gdk_window);
}