summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooser.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-04-04 03:25:16 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-04-04 03:25:16 +0000
commit8c8a4c89b83aecbdff9e89e8d14cdc1521be61a1 (patch)
treebf86f92f675404fddbcdf0fb2b8e837f3852d6d9 /gtk/gtkrecentchooser.c
parentc53db1264b062cc2216a3ed6c209ed90399a5ada (diff)
downloadgdk-pixbuf-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/gtkrecentchooser.c')
-rw-r--r--gtk/gtkrecentchooser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkrecentchooser.c b/gtk/gtkrecentchooser.c
index da7a192ab..721d04d6a 100644
--- a/gtk/gtkrecentchooser.c
+++ b/gtk/gtkrecentchooser.c
@@ -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");
}
/**