diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-08-31 17:50:29 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-01 02:34:02 +0800 |
commit | 8750a9c38420ec0fda448f715d974580a023f7a3 (patch) | |
tree | 958c5229c6312ffc2062b3d55d7d793b8d3c5eab | |
parent | 6200708d6bc6d37aedf3e7f7199ab4d87cd0cf3c (diff) | |
download | gsoc2013-epiphany-8750a9c38420ec0fda448f715d974580a023f7a3.tar.gz gsoc2013-epiphany-8750a9c38420ec0fda448f715d974580a023f7a3.tar.zst gsoc2013-epiphany-8750a9c38420ec0fda448f715d974580a023f7a3.zip |
ephy-embed-shell: use the new artwork for the overview's default thumbnail
-rw-r--r-- | embed/ephy-embed-shell.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index c0e22a440..99ed4f579 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -179,19 +179,15 @@ ephy_embed_shell_get_global_history_service (EphyEmbedShell *shell) } static GdkPixbuf * -ephy_embed_shell_get_icon (const char *icon_name) +ephy_embed_shell_get_overview_icon (const char *icon_name) { GError *error = NULL; - GtkIconTheme *icon_theme; GdkPixbuf *pixbuf; + char *filename; - icon_theme = gtk_icon_theme_get_default (); - - pixbuf = gtk_icon_theme_load_icon (icon_theme, - icon_name, - EPHY_THUMBNAIL_WIDTH, - 0, - &error); + filename = g_build_filename (ICONS_DIR, icon_name, NULL); + pixbuf = gdk_pixbuf_new_from_file (filename, &error); + g_free (filename); if (!pixbuf) { g_warning ("Couldn't load icon: %s", error->message); @@ -220,7 +216,7 @@ ephy_embed_shell_get_frecent_store (EphyEmbedShell *shell) if (shell->priv->frecent_store == NULL) { shell->priv->frecent_store = ephy_frecent_store_new (); - default_icon = ephy_embed_shell_get_icon ("text-html"); + default_icon = ephy_embed_shell_get_overview_icon ("missing-thumbnail.png"); g_object_set (shell->priv->frecent_store, "history-service", ephy_embed_shell_get_global_history_service (shell), |