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.
This commit is contained in:
Matthias Clasen
2006-04-04 03:25:16 +00:00
committed by Matthias Clasen
parent c53db1264b
commit 8c8a4c89b8
7 changed files with 19 additions and 21 deletions

View File

@ -181,10 +181,7 @@ gtk_recent_chooser_class_init (gpointer g_iface)
GQuark
gtk_recent_chooser_error_quark (void)
{
static GQuark error_quark = 0;
if (!error_quark)
error_quark = g_quark_from_static_string ("gtk-recent-chooser-error-quark");
return error_quark;
return g_quark_from_static_string ("gtk-recent-chooser-error-quark");
}
/**