We shouldn't honor user preferences for new tabs when loading
the session. Rather we append in the order they were saved in.
This is currently a hack. In the future we should consider
public API additions to insert tabs in a particular order.
session = midori_browser_get_proxy_array (browser);
i = 0;
while ((item = katze_array_get_nth_item (_session, i++)))
+ {
+ g_object_set_data (G_OBJECT (item), "midori-view-append", (void*)1);
midori_browser_add_item (browser, item);
+ }
current = katze_item_get_meta_integer (KATZE_ITEM (_session), "current");
if (current < 0)
current = 0;
midori_view_set_uri (MIDORI_VIEW (view), uri);
gtk_widget_show (view);
+ /* FIXME: We should have public API for that */
+ if (g_object_get_data (G_OBJECT (item), "midori-view-append"))
+ g_object_set_data (G_OBJECT (view), "midori-view-append", (void*)1);
+
page = midori_browser_add_tab (browser, view);
proxy_item = midori_view_get_proxy_item (MIDORI_VIEW (view));
if ((keys = katze_item_get_meta_keys (item)))