30
* SECTION:totem-video-list
31
* @short_description: a #GtkTreeView widget for listing videos
32
* @stability: Unstable
33
* @include: totem-video-list.h
34
* @see_also: #TotemCellRendererVideo
36
* #TotemVideoList is a #GtkTreeView designed for listing videos by their thumbnails using #TotemCellRendererVideo.
37
* It supports tooltips, loading the videos by activating tree view rows, and #GtkUIManager actions in the popup menu.
29
40
#include "config.h"
103
121
object_class->set_property = totem_video_list_set_property;
104
122
object_class->get_property = totem_video_list_get_property;
105
123
object_class->dispose = totem_video_list_dispose;
124
klass->starting_video = default_starting_video_cb;
127
* TotemVideoList:tooltip-column:
129
* The column number of the #GtkTreeModel column containing tooltips to be displayed by the video list.
130
* If it's set to -1, no tooltips shall be displayed.
107
132
g_object_class_install_property (object_class, PROP_TOOLTIP_COLUMN,
108
133
g_param_spec_int ("tooltip-column", NULL, NULL,
109
134
-1, G_MAXINT, -1, G_PARAM_READWRITE));
137
* TotemVideoList:mrl-column:
139
* The column number of the #GtkTreeModel column containing MRLs of the videos in the video list.
140
* If it's set to -1, video rows will not be activatable (e.g. by double-clicking them).
110
142
g_object_class_install_property (object_class, PROP_MRL_COLUMN,
111
143
g_param_spec_int ("mrl-column", NULL, NULL,
112
144
-1, G_MAXINT, -1, G_PARAM_READWRITE));
147
* TotemVideoList:totem:
149
* A #TotemObject for integration purposes.
151
/* FIXME: Is there no better way to do this? */
113
152
g_object_class_install_property (object_class, PROP_TOTEM,
114
153
g_param_spec_object ("totem", NULL, NULL,
115
154
TOTEM_TYPE_OBJECT, G_PARAM_READWRITE));
117
klass->starting_video = default_starting_video_cb;
157
* TotemVideoList::starting-video:
158
* @video_list: the #TotemVideoList which received the signal
159
* @tree_path: the #GtkTreePath of the video row about to be played
161
* The #TotemVideoList::starting-video signal is emitted when a video row is activated, just before the video is
162
* added to the playlist. It allows for the video's MRL in the #GtkTreeModel to be modified, for example.
164
* If this returns %TRUE, the video will be played; otherwise, it will not.
118
166
totem_video_list_table_signals[STARTING_VIDEO] = g_signal_new ("starting-video",
119
167
G_TYPE_FROM_CLASS (object_class),
120
168
G_SIGNAL_RUN_LAST,