diff options
author | Benjamin Otte <otte@redhat.com> | 2020-02-02 00:44:01 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2020-02-04 16:43:59 +0100 |
commit | 48b97919890134748a83afbeac71929d7ab57330 (patch) | |
tree | 94e5b45ebe2476e41c15ae29d9f346ebc32b9a0b /gtk | |
parent | 4c3363b8c22e8ef688486289cbbc9f73d33e1dc0 (diff) | |
download | gtk+-48b97919890134748a83afbeac71929d7ab57330.tar.gz |
icontheme: Remove gtk_icon_theme_rescan_if_needed()
If the icon theme needs to be rescanned, it should just do it.
If it doesn't, there's no need for this function.
Ergo: Don't have the function.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkicontheme.c | 29 | ||||
-rw-r--r-- | gtk/gtkicontheme.h | 2 |
2 files changed, 0 insertions, 31 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 91dc0e0eaf..f1c60285ee 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2612,35 +2612,6 @@ rescan_themes (GtkIconTheme *self) return FALSE; } -/** - * gtk_icon_theme_rescan_if_needed: - * @self: a #GtkIconTheme - * - * Checks to see if the icon theme has changed; if it has, any - * currently cached information is discarded and will be reloaded - * next time @self is accessed. - * - * Returns: %TRUE if the icon theme has changed and needed - * to be reloaded. - */ -gboolean -gtk_icon_theme_rescan_if_needed (GtkIconTheme *self) -{ - gboolean retval; - - g_return_val_if_fail (GTK_IS_ICON_THEME (self), FALSE); - - gtk_icon_theme_lock (self); - - retval = rescan_themes (self); - if (retval) - do_theme_change (self); - - gtk_icon_theme_unlock (self); - - return retval; -} - static IconTheme * theme_new (const char *theme_name, GKeyFile *theme_file) diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index f1a01773bf..442ff8c26c 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -149,8 +149,6 @@ GtkIcon * gtk_icon_theme_lookup_by_gicon (GtkIconTheme GDK_AVAILABLE_IN_ALL GList * gtk_icon_theme_list_icons (GtkIconTheme *self, const gchar *context); -GDK_AVAILABLE_IN_ALL -gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *self); GDK_AVAILABLE_IN_ALL |