diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui.c | 71 | ||||
-rw-r--r-- | src/ui/ui.h | 3 |
2 files changed, 0 insertions, 74 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 diff --git a/src/ui/ui.h b/src/ui/ui.h index ca52f4c45..d82dc7d8d 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -143,9 +143,6 @@ GdkPixbuf* meta_gdk_pixbuf_get_from_pixmap (Pixmap xpixmap, int width, int height); -GdkPixbuf* meta_ui_get_default_window_icon (MetaUI *ui); -GdkPixbuf* meta_ui_get_default_mini_icon (MetaUI *ui); - gboolean meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow); |