~noskcaj/ubuntu/wily/epiphany-browser/merge

« back to all changes in this revision

Viewing changes to src/bookmarks/ephy-bookmarks.c

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2015-06-02 10:42:34 UTC
  • mfrom: (1.10.3) (105.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20150602104234-aud9080wq37exs53
Tags: 3.16.1-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/patches/07_bookmarks.patch:
    Add Ubuntu-specific default bookmarks, borrowed from Firefox
  - debian/patches/81_ubuntu_force_update_bookmarks_menu.patch:
    update the bookmarks menu every time the internal structure
    is changed (needed for the indicator application menu to work
    correctly).
  - debian/patches/ubuntu_titlebars.patch: Use traditional titlebars
    for non-GNOME sessions

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
ephy_setup_history_notifiers (EphyBookmarks *eb)
246
246
{
247
247
        WebKitFaviconDatabase *favicon_database;
 
248
        EphyEmbedShell *shell = ephy_embed_shell_get_default ();
248
249
 
249
 
        favicon_database = webkit_web_context_get_favicon_database (webkit_web_context_get_default ());
 
250
        favicon_database = webkit_web_context_get_favicon_database (ephy_embed_shell_get_web_context (shell));
250
251
        g_signal_connect (favicon_database, "favicon-changed",
251
252
                          G_CALLBACK (icon_updated_cb), eb);
252
253
}
1135
1136
{
1136
1137
        EphyNode *bm;
1137
1138
        WebKitFaviconDatabase *favicon_database;
 
1139
        EphyEmbedShell *shell = ephy_embed_shell_get_default ();
1138
1140
 
1139
1141
        bm = ephy_node_new (eb->priv->db);
1140
1142
 
1149
1151
        }
1150
1152
        ephy_node_set_property_string (bm, EPHY_NODE_BMK_PROP_TITLE, title);
1151
1153
 
1152
 
        favicon_database = webkit_web_context_get_favicon_database (webkit_web_context_get_default ());
 
1154
        favicon_database = webkit_web_context_get_favicon_database (ephy_embed_shell_get_web_context (shell));
1153
1155
        if (favicon_database != NULL)
1154
1156
        {
1155
1157
                char *icon = webkit_favicon_database_get_favicon_uri (favicon_database, url);