~evfool/midori/lp792536

« back to all changes in this revision

Viewing changes to midori/midori-locationaction.c

  • Committer: Christian Dywan
  • Author(s): Enrico Tröger
  • Date: 2009-04-26 23:11:58 UTC
  • Revision ID: git-v1:ba7e8846ee6cf586d2b66cad019751fa5b42e4f2
Do not display any icon if there's no news feed available

Work around a bug that made unsetting the secondary icon in the
location entry impossible and do not set an icon if there is
no news feed instead of an 'information' icon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1311
1311
        entry = gtk_bin_get_child (GTK_BIN (alignment));
1312
1312
        child = gtk_bin_get_child (GTK_BIN (entry));
1313
1313
 
1314
 
        if (stock_id)
1315
 
            gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
1316
 
                GTK_ICON_ENTRY_SECONDARY, stock_id);
1317
 
        else
1318
 
            gtk_icon_entry_set_icon_from_pixbuf (GTK_ICON_ENTRY (child),
1319
 
                GTK_ICON_ENTRY_SECONDARY, NULL);
 
1314
        gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
 
1315
            GTK_ICON_ENTRY_SECONDARY, stock_id);
1320
1316
    }
1321
1317
}
1322
1318