summaryrefslogtreecommitdiff
path: root/gtk/gtkiconfactory.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-09-24 21:03:58 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-09-24 21:03:58 +0000
commit15896b962dfa5c959565ed6be36db6a4f1721273 (patch)
tree2d1e950f1e05a51d5abd3fc088f75d8aeb86d9cb /gtk/gtkiconfactory.h
parent73413ba70ec92371772af749f04cd8f9b238e96e (diff)
downloadgtk+-15896b962dfa5c959565ed6be36db6a4f1721273.tar.gz
Make icon sizes configurable (#70648, slightly based on a patch from Bill
Tue Sep 24 16:40:14 2002 Owen Taylor <otaylor@redhat.com> Make icon sizes configurable (#70648, slightly based on a patch from Bill Haneman, Brian Cameron) * gtk/gtkiconfactory.[ch]: Add gtk_icon_size_lookup_for_settings(). * gtk/gtksettings.c: Add gtk-icon-sizes XSETTING * gtk/gtkiconfactory.c: Make icon sizes per-GtkSettings. * gtk/gtkstyle.c: Use gtk_icon_size_lookup_for_settings() * gtk/gtkrc.[ch]: Privately export _gtk_rc_reset_styles() to force all the widgets to recompute their appearance.
Diffstat (limited to 'gtk/gtkiconfactory.h')
-rw-r--r--gtk/gtkiconfactory.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/gtkiconfactory.h b/gtk/gtkiconfactory.h
index de02cfd9ff..e6fb5435ec 100644
--- a/gtk/gtkiconfactory.h
+++ b/gtk/gtkiconfactory.h
@@ -88,9 +88,16 @@ GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id);
* size from the rendered pixbuf, not from here.
*/
-gboolean gtk_icon_size_lookup (GtkIconSize size,
- gint *width,
- gint *height);
+#ifdef GTK_MULTIHEAD_SAFE
+gboolean gtk_icon_size_lookup (GtkIconSize size,
+ gint *width,
+ gint *height);
+#endif /* GTK_MULTIHEAD_SAFE */
+gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings,
+ GtkIconSize size,
+ gint *width,
+ gint *height);
+
GtkIconSize gtk_icon_size_register (const gchar *name,
gint width,
gint height);