Always append tabs added from a loaded session
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.
This commit is contained in:
parent
8f23dcfd33
commit
6ae3633dce
2 changed files with 7 additions and 0 deletions
|
@ -1261,7 +1261,10 @@ midori_load_session (gpointer data)
|
|||
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;
|
||||
|
|
|
@ -7333,6 +7333,10 @@ midori_browser_add_item (MidoriBrowser* browser,
|
|||
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)))
|
||||
|
|
Loading…
Reference in a new issue