diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-12-03 14:52:36 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-18 21:27:31 -0400 |
commit | 2a0dee9883da005ee90b37c69aa0b617c8a8034c (patch) | |
tree | cf8270e85944fbabd97aaa9cf9a064495010ef40 /src/ui/ui.c | |
parent | 1502d2a79f7ecd2ec2ea9caf895d5a64cc2615b9 (diff) | |
download | mutter-wip/icons.tar.gz |
iconswip/icons
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r-- | src/ui/ui.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c index 1a19838f4..6a7c9ed73 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -598,76 +598,6 @@ meta_gdk_pixbuf_get_from_pixmap (Pixmap xpixmap, return retval; } -GdkPixbuf* -meta_ui_get_default_window_icon (MetaUI *ui) -{ - static GdkPixbuf *default_icon = NULL; - - if (default_icon == NULL) - { - GtkIconTheme *theme; - gboolean icon_exists; - - theme = gtk_icon_theme_get_default (); - - icon_exists = gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME); - - if (icon_exists) - default_icon = gtk_icon_theme_load_icon (theme, - META_DEFAULT_ICON_NAME, - META_ICON_WIDTH, - 0, - NULL); - else - default_icon = gtk_icon_theme_load_icon (theme, - "image-missing", - META_ICON_WIDTH, - 0, - NULL); - - g_assert (default_icon); - } - - g_object_ref (G_OBJECT (default_icon)); - - return default_icon; -} - -GdkPixbuf* -meta_ui_get_default_mini_icon (MetaUI *ui) -{ - static GdkPixbuf *default_icon = NULL; - - if (default_icon == NULL) - { - GtkIconTheme *theme; - gboolean icon_exists; - - theme = gtk_icon_theme_get_default (); - - icon_exists = gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME); - - if (icon_exists) - default_icon = gtk_icon_theme_load_icon (theme, - META_DEFAULT_ICON_NAME, - META_MINI_ICON_WIDTH, - 0, - NULL); - else - default_icon = gtk_icon_theme_load_icon (theme, - "image-missing", - META_MINI_ICON_WIDTH, - 0, - NULL); - - g_assert (default_icon); - } - - g_object_ref (G_OBJECT (default_icon)); - - return default_icon; -} - gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow) @@ -775,7 +705,6 @@ void meta_ui_set_current_theme (const char *name) { meta_theme_set_current (name); - meta_invalidate_default_icons (); } gboolean |