diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-04-04 03:25:16 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-04 03:25:16 +0000 |
commit | 8c8a4c89b83aecbdff9e89e8d14cdc1521be61a1 (patch) | |
tree | bf86f92f675404fddbcdf0fb2b8e837f3852d6d9 /gtk/gtkicontheme.c | |
parent | c53db1264b062cc2216a3ed6c209ed90399a5ada (diff) | |
download | gtk+-8c8a4c89b83aecbdff9e89e8d14cdc1521be61a1.tar.gz |
No point in making the error path fast by caching quarks.
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentchooser.c (gtk_recent_chooser_error_quark):
* gtk/gtkrecentmanager.c (gtk_recent_manager_error_quark):
* gtk/gtkfilechooser.c (gtk_file_chooser_error_quark):
* gtk/gtkfilesystem.c (gtk_file_system_error_quark):
* gtk/gtkicontheme.c (gtk_icon_theme_error_quark): No point
in making the error path fast by caching quarks.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 1be4d3660c..19b83f6c6a 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1342,11 +1342,7 @@ gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme, GQuark gtk_icon_theme_error_quark (void) { - static GQuark q = 0; - if (q == 0) - q = g_quark_from_static_string ("gtk-icon-theme-error-quark"); - - return q; + return g_quark_from_static_string ("gtk-icon-theme-error-quark"); } /** |