]> spindle.queued.net Git - midori/commitdiff
Set minimize property from item when creating view
authorChristian Dywan <christian@twotoasts.de>
Wed, 14 Dec 2011 00:15:26 +0000 (01:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 14 Dec 2011 00:15:26 +0000 (01:15 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/903325
midori/midori-view.c

index 2d3c3338eb7e02f9213942b1157988a91faebd94..b0d6eef41d674a8cab0c1fed56c7e0f548203039 100644 (file)
@@ -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;
 }