MidoriBrowser* browser)
{
MidoriBrowser* new_browser = g_object_new (MIDORI_TYPE_BROWSER, NULL);
- midori_browser_add_uri (new_browser, uri);
g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser);
+ midori_browser_add_uri (new_browser, uri);
}
static void
if (where == MIDORI_NEW_VIEW_WINDOW)
{
MidoriBrowser* new_browser = g_object_new (MIDORI_TYPE_BROWSER, NULL);
+ g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser);
midori_browser_add_tab (new_browser, new_view);
midori_browser_set_current_tab (new_browser, new_view);
- g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser);
}
else
{
MidoriBrowser* browser)
{
MidoriBrowser* new_browser = g_object_new (MIDORI_TYPE_BROWSER, NULL);
- midori_browser_add_uri (new_browser, "");
g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser);
+ midori_browser_add_uri (new_browser, "");
}
static void
if (uri && *uri)
{
MidoriBrowser* new_browser = g_object_new (MIDORI_TYPE_BROWSER, NULL);
- midori_browser_add_uri (new_browser, uri);
g_signal_emit (browser, signals[NEW_WINDOW], 0, new_browser);
+ midori_browser_add_uri (new_browser, uri);
}
}