gtk_main_quit ();
}
-static void
-midori_web_app_browser_notify_load_status_cb (MidoriBrowser* browser,
- GParamSpec* pspec,
- gpointer data)
-{
- if (katze_object_get_enum (browser, "load-status") != MIDORI_LOAD_PROVISIONAL)
- {
- GtkWidget* view = midori_browser_get_current_tab (browser);
- GdkPixbuf* icon = midori_view_get_icon (MIDORI_VIEW (view));
- if (midori_view_is_blank (MIDORI_VIEW (view)))
- icon = NULL;
- gtk_window_set_icon (GTK_WINDOW (browser), icon);
- }
-}
-
static MidoriBrowser*
midori_web_app_browser_new_window_cb (MidoriBrowser* browser,
MidoriBrowser* new_browser,
{
SoupSession* session = webkit_get_default_session ();
MidoriBrowser* browser = midori_browser_new ();
- /* Update window icon according to page */
- g_signal_connect (browser, "notify::load-status",
- G_CALLBACK (midori_web_app_browser_notify_load_status_cb), NULL);
g_signal_connect (browser, "new-window",
G_CALLBACK (midori_web_app_browser_new_window_cb), NULL);
g_object_set_data (G_OBJECT (webkit_get_default_session ()),
{
midori_location_action_set_text (location_action, browser->statusbar_text);
midori_location_action_set_icon (location_action, NULL);
+ if (sokoke_is_app_or_private ())
+ gtk_window_set_icon (GTK_WINDOW (browser), NULL);
midori_location_action_set_secondary_icon (location_action, NULL);
}
else
midori_view_get_display_uri (MIDORI_VIEW (view)));
midori_location_action_set_icon (location_action,
midori_view_get_icon (MIDORI_VIEW (view)));
+ if (sokoke_is_app_or_private ())
+ gtk_window_set_icon (GTK_WINDOW (browser),
+ midori_view_get_icon (MIDORI_VIEW (view)));
}
}
}
MIDORI_LOCATION_ACTION (action), midori_view_get_icon (view), uri);
midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action),
midori_view_get_icon (view));
+ if (sokoke_is_app_or_private ())
+ gtk_window_set_icon (GTK_WINDOW (browser), midori_view_get_icon (view));
}
static void
midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri);
midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action),
midori_view_get_icon (view));
+ if (sokoke_is_app_or_private ())
+ gtk_window_set_icon (GTK_WINDOW (browser), midori_view_get_icon (view));
if (browser->proxy_array)
katze_item_set_meta_integer (KATZE_ITEM (browser->proxy_array), "current",