From 7e50bb18f847d121d46dc3da7349f5f8aa7f5a8a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 14 Dec 2011 01:15:26 +0100 Subject: [PATCH] Set minimize property from item when creating view Fixes: https://bugs.launchpad.net/midori/+bug/903325 --- midori/midori-view.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }