use G_DEFINE_QUARK instead of rolling our own quark getters

This commit is contained in:
Jordan Lee
2013-07-09 22:44:24 +00:00
parent de248c94fb
commit d244545979
3 changed files with 8 additions and 35 deletions

View File

@@ -664,16 +664,7 @@ freespace_label_data_free (gpointer gdata)
g_free (data);
}
static GQuark
freespace_label_data_quark (void)
{
static GQuark q = 0;
if (G_UNLIKELY(!q))
q = g_quark_from_static_string ("data");
return q;
}
static G_DEFINE_QUARK (freespace-label-data, freespace_label_data)
static void
on_freespace_label_core_destroyed (gpointer gdata, GObject * dead_core G_GNUC_UNUSED)