Fix colorful tabs by checking icon, not load status
Otherwise delayed tabs would never be colored.
This commit is contained in:
parent
51e3e8e495
commit
599de9cb74
1 changed files with 2 additions and 3 deletions
|
@ -48,11 +48,10 @@ colorful_tabs_view_notify_uri_cb (MidoriView* view,
|
||||||
|
|
||||||
if (!midori_uri_is_blank (midori_view_get_display_uri (view))
|
if (!midori_uri_is_blank (midori_view_get_display_uri (view))
|
||||||
&& (hostname = midori_uri_parse_hostname (midori_view_get_display_uri (view), NULL))
|
&& (hostname = midori_uri_parse_hostname (midori_view_get_display_uri (view), NULL))
|
||||||
&& katze_object_get_enum (view, "load-status") == MIDORI_LOAD_FINISHED)
|
&& midori_view_get_icon_uri (view) != NULL)
|
||||||
{
|
{
|
||||||
icon = midori_view_get_icon (view);
|
icon = midori_view_get_icon (view);
|
||||||
|
if (icon != NULL)
|
||||||
if (midori_view_get_icon_uri (view) != NULL)
|
|
||||||
{
|
{
|
||||||
GdkPixbuf* newpix;
|
GdkPixbuf* newpix;
|
||||||
guchar* pixels;
|
guchar* pixels;
|
||||||
|
|
Loading…
Reference in a new issue