[totem] main: Fix for GtkVBox changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix for GtkVBox changes
- Date: Fri, 17 Jun 2011 13:13:53 +0000 (UTC)
commit 91d259dc2241be2b6cee071b45cfef2ed5865f23
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 17 14:12:58 2011 +0100
main: Fix for GtkVBox changes
Hopefully.
src/totem-playlist.c | 5 ++++-
src/totem-playlist.h | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index b29453b..e52ab80 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -176,7 +176,7 @@ static void init_treeview (GtkWidget *treeview, TotemPlaylist *playlist);
#define totem_playlist_unset_playing(x) totem_playlist_set_playing(x, TOTEM_PLAYLIST_STATUS_NONE)
-G_DEFINE_TYPE (TotemPlaylist, totem_playlist, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (TotemPlaylist, totem_playlist, GTK_TYPE_BOX)
/* Helper functions */
static gboolean
@@ -1648,6 +1648,9 @@ totem_playlist_init (TotemPlaylist *playlist)
GtkWidget *widget;
GtkStyleContext *context;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (playlist),
+ GTK_ORIENTATION_VERTICAL);
+
playlist->priv = G_TYPE_INSTANCE_GET_PRIVATE (playlist, TOTEM_TYPE_PLAYLIST, TotemPlaylistPrivate);
playlist->priv->parser = totem_pl_parser_new ();
diff --git a/src/totem-playlist.h b/src/totem-playlist.h
index 11305f9..af358fd 100644
--- a/src/totem-playlist.h
+++ b/src/totem-playlist.h
@@ -62,12 +62,12 @@ typedef void (*TotemPlaylistForeachFunc) (TotemPlaylist *playlist,
gpointer user_data);
struct TotemPlaylist {
- GtkVBox parent;
+ GtkBox parent;
TotemPlaylistPrivate *priv;
};
struct TotemPlaylistClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
void (*changed) (TotemPlaylist *playlist);
void (*item_activated) (TotemPlaylist *playlist);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]