aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-25 19:50:03 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-25 19:50:03 +0800
commita33d5f514695d3d487043397f3baf4f31cc92b73 (patch)
tree24cb5eeacb26401f3dd1fed7918e9d7937057cf2 /lib
parentebe9e8c7f0333591c5120d9645f9a0c1d7ebd0a9 (diff)
downloadgsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar.gz
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar.bz2
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar.lz
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar.xz
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.tar.zst
gsoc2013-epiphany-a33d5f514695d3d487043397f3baf4f31cc92b73.zip
Use gtk_icon_size_lookup_for_settings() here.
2004-10-25 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (downloader_view_add_download): * lib/widgets/ephy-spinner.c: (ephy_spinner_cache_get_images), (ephy_spinner_size_request): * src/ephy-notebook.c: (tab_label_style_set_cb): * src/window-commands.c: (window_cmd_help_about): Use gtk_icon_size_lookup_for_settings() here.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-spinner.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c
index ab98dc4cb..13a9d80d7 100644
--- a/lib/widgets/ephy-spinner.c
+++ b/lib/widgets/ephy-spinner.c
@@ -38,6 +38,7 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtkicontheme.h>
#include <gtk/gtkiconfactory.h>
+#include <gtk/gtksettings.h>
/* Spinner cache implementation */
@@ -350,7 +351,7 @@ ephy_spinner_cache_get_images (EphySpinnerCache *cache,
return ephy_spinner_images_copy ((EphySpinnerImages *) element->data);
}
- if (!gtk_icon_size_lookup (size, &w, &h))
+ if (!gtk_icon_size_lookup_for_settings (gtk_settings_get_default (), size, &w, &h))
{
g_warning ("Failed to lookup icon size\n");
return NULL;
@@ -751,9 +752,10 @@ ephy_spinner_size_request (GtkWidget *widget,
if (!ephy_spinner_load_images (spinner))
{
requisition->width = requisition->height = 0;
- gtk_icon_size_lookup (spinner->details->size,
- &requisition->width,
- &requisition->height);
+ gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (widget),
+ spinner->details->size,
+ &requisition->width,
+ &requisition->height);
return;
}