Re: [PATCH 1/7] core: Add "content-changed" signal




On Tue, 1 Feb 2011 18:09:06 +0100, "Juan A. Suarez Romero" <jasuarez igalia com> wrote:
(...)
+/**
+ * GrlMediaSourceChangeType:
+ * @GRL_CONTENT_CHANGED: content has changed. It is used when any
property of
+ * #GrlMedia has changed, or in case of #GrlMediaBox, if several
children has
           ^^^ have been
+ * been added and removed.
+ * @GRL_CONTENT_ADDED: new content has been added.
+ * @GRL_CONTENT_REMOVED: content has been removed
+ *
+ * Specifies which kind of change has happened in the plugin
+ */
+typedef enum {
+  GRL_CONTENT_CHANGED,
+  GRL_CONTENT_ADDED,
+  GRL_CONTENT_REMOVED,
+} GrlMediaSourceChangeType;

 /* GrlMediaSource object */

@@ -382,6 +397,12 @@ struct _GrlMediaSourceClass {

   /*< private >*/
   gpointer _grl_reserved[GRL_PADDING];
+
+  /* signals */
+  void (*content_changed) (GrlMediaSource *source,
+                           GrlMedia *media,
+                           GrlMediaSourceChangeType change_type,
+                           gboolean location_unknown);
 };

Iago


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]