EinaPlaylist

EinaPlaylist — UI component for playlist

Synopsis

                    EinaPlaylist;
                    EinaPlaylistClass;
LomoPlayer *        eina_playlist_get_lomo_player       (EinaPlaylist *self);
GtkTreeModel *      eina_playlist_get_model             (EinaPlaylist *self);
gchar *             eina_playlist_get_stream_markup     (EinaPlaylist *self);
GtkTreeView *       eina_playlist_get_view              (EinaPlaylist *self);
EinaPlaylist *      eina_playlist_new                   (LomoPlayer *lomo);
void                eina_playlist_set_stream_markup     (EinaPlaylist *self,
                                                         const gchar *markup);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----GelUIGeneric
                                 +----EinaPlaylist

Implemented Interfaces

EinaPlaylist implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "lomo-player"              LomoPlayer*           : Read
  "stream-markup"            gchar*                : Read / Write

Signals

  "action-activated"                               : Run Last

Description

EinaPlaylist is the UI component for display and control information relative to the playlist from LomoPlayer

Details

EinaPlaylist

typedef struct _EinaPlaylist EinaPlaylist;

EinaPlaylistClass

typedef struct {
	GelUIGenericClass parent_class;
	gboolean (*action_activated) (EinaPlaylist *self, GtkAction *action);
} EinaPlaylistClass;

eina_playlist_get_lomo_player ()

LomoPlayer *        eina_playlist_get_lomo_player       (EinaPlaylist *self);

Gets the value of "lomo-player" property

self :

An EinaPlaylist

Returns :

The property value. [transfer none]

eina_playlist_get_model ()

GtkTreeModel *      eina_playlist_get_model             (EinaPlaylist *self);

Gets the correspondent model (a GtkListModel) from self

self :

An EinaPlaylist

Returns :

The model. [transfer none]

eina_playlist_get_stream_markup ()

gchar *             eina_playlist_get_stream_markup     (EinaPlaylist *self);

Gets the value of "markup" property

self :

An EinaPlaylist

Returns :

The property value. [transfer full]

eina_playlist_get_view ()

GtkTreeView *       eina_playlist_get_view              (EinaPlaylist *self);

Gets the correspondent view from self

self :

An EinaPlaylist

Returns :

The view. [transfer none]

eina_playlist_new ()

EinaPlaylist *      eina_playlist_new                   (LomoPlayer *lomo);

Creates a new EinaPlaylist based on lomo

lomo :

A LomoPlayer. [transfer none]

Returns :

The EinaPlaylist object

eina_playlist_set_stream_markup ()

void                eina_playlist_set_stream_markup     (EinaPlaylist *self,
                                                         const gchar *markup);

Sets the value of "markup" property

self :

An EinaPlaylist

markup :

Value for the property

Property Details

The "lomo-player" property

  "lomo-player"              LomoPlayer*           : Read

The LomoPlayer associated with this object


The "stream-markup" property

  "stream-markup"            gchar*                : Read / Write

Markup used to display items in the playlist. The markup will be surrounded with <b></b> if the item is active.

See SOME-UNDEF-SECTION for more information

Default value: "{%a - }%t"

Signal Details

The "action-activated" signal

gboolean            user_function                      (EinaPlaylist *Returns,
                                                        GtkAction    *arg1,
                                                        gpointer      user_data)      : Run Last

Emitted if some action like random, repeat, open, etc is activated and can be handled by external code

playlist: The EinaPlaylist action: The activated GtkAction

user_data :

user data set when the signal handler was connected.

Returns :

TRUE if action was handled and processing must be stopped, FALSE otherwise