]> spindle.queued.net Git - midori/commitdiff
Support meta-data-changed::key in KatzeItem
authorChristian Dywan <christian@twotoasts.de>
Fri, 11 Dec 2009 22:45:11 +0000 (23:45 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 11 Dec 2009 22:45:11 +0000 (23:45 +0100)
katze/katze-item.c

index 80f835ebb5d729e49c5d195d935c1d2bd525ec9b..e3962a39ce689bad3283ed127a9eae27fdf5544f 100644 (file)
@@ -75,12 +75,14 @@ katze_item_class_init (KatzeItemClass* class)
      *
      * Emitted when a meta data value was changed.
      *
+     * Since 0.2.2 details according to keys are supported.
+     *
      * Since: 0.1.9
      */
     signals[META_DATA_CHANGED] = g_signal_new (
         "meta-data-changed",
         G_TYPE_FROM_CLASS (class),
-        (GSignalFlags)(G_SIGNAL_RUN_LAST),
+        (GSignalFlags)(G_SIGNAL_RUN_LAST |G_SIGNAL_DETAILED),
         0,
         0,
         NULL,
@@ -510,7 +512,7 @@ katze_item_set_meta_data_value (KatzeItem*   item,
         g_hash_table_insert (item->metadata, g_strdup (&key[7]), value);
     else
         g_hash_table_insert (item->metadata, g_strdup (key), value);
-    g_signal_emit (item, signals[META_DATA_CHANGED], 0, key);
+    g_signal_emit (item, signals[META_DATA_CHANGED], g_quark_from_string (key), key);
 }
 
 /**