From: Christian Dywan Date: Wed, 14 Dec 2011 00:15:26 +0000 (+0100) Subject: Set minimize property from item when creating view X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e50bb18f847d121d46dc3da7349f5f8aa7f5a8a;p=midori Set minimize property from item when creating view Fixes: https://bugs.launchpad.net/midori/+bug/903325 --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 2d3c3338..b0d6eef4 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3294,7 +3294,11 @@ midori_view_new_with_item (KatzeItem* item, if (settings) _midori_view_set_settings (view, settings); if (item) + { katze_object_assign (view->item, katze_item_copy (item)); + view->minimized = katze_item_get_meta_string ( + view->item, "minimized") != NULL; + } gtk_widget_show ((GtkWidget*)view); return (GtkWidget*)view; }