summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2007-12-19 21:38:15 +0000
committerHavoc Pennington <hp@src.gnome.org>2007-12-19 21:38:15 +0000
commitb718f79c47022929cc401cfd35576e4bd71815ca (patch)
tree67bfdc1e5616bf10432c0307695a1fbdfac7ee53 /src/ui
parent72b08c82b16a850fd4f0cd52d58812b4180fe969 (diff)
downloadmetacity-b718f79c47022929cc401cfd35576e4bd71815ca.tar.gz
metacity-b718f79c47022929cc401cfd35576e4bd71815ca.tar.bz2
fix a third warning about %d and long int
2007-12-19 Havoc Pennington <hp@redhat.com> * src/core/display.c (meta_display_open): fix a third warning about %d and long int * src/core/delete.c (io_from_ping_dialog): fix another warning about long int to %d * src/core/compositor.c (meta_compositor_new): fix a warning about long int to %d * src/core/iconcache.c (meta_read_icons): use meta_ui_get_fallback_icons() instead of incorrectly including theme.h * src/ui/ui.c (meta_ui_get_fallback_icons): new function svn path=/trunk/; revision=3492
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 597d945..9cf9c27 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -988,6 +988,16 @@ meta_ui_get_pixbuf_from_pixmap (Pixmap pmap)
return pixbuf;
}
-
-
+void
+meta_ui_get_fallback_icons (GdkPixbuf **fallback_icon_p,
+ GdkPixbuf **fallback_mini_icon_p)
+{
+ MetaTheme *theme = meta_theme_get_current ();
+
+ if (fallback_icon_p)
+ *fallback_icon_p = theme->fallback_icon;
+
+ if (fallback_mini_icon_p)
+ *fallback_mini_icon_p = theme->fallback_mini_icon;
+}