Commit 35beda8f authored by Philippe Rouquier's avatar Philippe Rouquier

Fix some warnings due to bad handling of GType values

parent a5a0d27b
......@@ -334,13 +334,19 @@ brasero_track_tag_copy_missing (BraseroTrack *dest,
g_hash_table_iter_init (&iter, priv->tags);
priv = BRASERO_TRACK_PRIVATE (dest);
if (!priv->tags)
priv->tags = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_free,
brasero_track_tag_value_free);
while (g_hash_table_iter_next (&iter, &key, &value)) {
if (g_hash_table_lookup (priv->tags, key))
continue;
new_value = g_new0 (GValue, 1);
g_value_init (new_value, g_value_get_gtype (value));
g_value_init (new_value, G_VALUE_TYPE (value));
g_value_copy (new_value, value);
new_key = g_strdup (key);
......
......@@ -87,8 +87,6 @@ G_BEGIN_DECLS
G_STRLOC, \
format, \
##__VA_ARGS__);
void
brasero_burn_set_debug (gboolean debug_value);
void
brasero_burn_debug_setup_module (GModule *handle);
......
......@@ -368,7 +368,7 @@ brasero_medium_monitor_removed_cb (BraseroHALWatch *watch,
ctx = brasero_hal_watch_get_ctx (watch);
priv = BRASERO_MEDIUM_MONITOR_PRIVATE (self);
BRASERO_MEDIA_LOG ("Drive removed");
BRASERO_MEDIA_LOG ("HAL signal device removed");
for (iter = priv->drives; iter; iter = next) {
const gchar *device_udi;
......@@ -384,6 +384,7 @@ brasero_medium_monitor_removed_cb (BraseroHALWatch *watch,
if (!strcmp (device_udi, udi)) {
BraseroMedium *medium;
BRASERO_MEDIA_LOG ("Drive removed");
medium = brasero_drive_get_medium (drive);
if (medium)
g_signal_emit (self,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment