aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/ephy-notebook.c3
-rw-r--r--src/window-commands.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index f3f39011c..3acde1c30 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -834,7 +834,8 @@ tab_label_style_set_cb (GtkWidget *label,
LOG ("tab_label_size_request_cb label %p char_width %d total %d",
label, char_width, TAB_WIDTH_N_CHARS * PANGO_PIXELS (char_width))
- gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h);
+ gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (label),
+ GTK_ICON_SIZE_MENU, &w, &h);
gtk_widget_set_size_request
(hbox, TAB_WIDTH_N_CHARS * PANGO_PIXELS(char_width) + 2 * w, -1);
diff --git a/src/window-commands.c b/src/window-commands.c
index a0d935887..43b43f608 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -954,8 +954,9 @@ window_cmd_help_about (GtkAction *action,
return;
}
- gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &size, NULL);
/* FIXME multihead: use the icon theme for the correct screen, not for the default screen */
+ gtk_icon_size_lookup_for_settings (gtk_settings_get_default (),
+ GTK_ICON_SIZE_DIALOG, &size, NULL);
icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
"web-browser", size, 0 , NULL);
if (icon == NULL)