[totem] properties: Port TotemPropertiesView from GtkTable to GtkGrid



commit 226dc37981f927c96f4fbf660fb1410c3157a155
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 2 13:33:50 2011 +0000

    properties: Port TotemPropertiesView from GtkTable to GtkGrid
    
    This fixes compilation with GTK+ deprecated symbols disabled.

 src/totem-properties-view.c |    5 ++---
 src/totem-properties-view.h |    4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/totem-properties-view.c b/src/totem-properties-view.c
index 56f347b..e145a0d 100644
--- a/src/totem-properties-view.c
+++ b/src/totem-properties-view.c
@@ -45,7 +45,7 @@ struct TotemPropertiesViewPriv {
 static GObjectClass *parent_class = NULL;
 static void totem_properties_view_finalize (GObject *object);
 
-G_DEFINE_TYPE (TotemPropertiesView, totem_properties_view, GTK_TYPE_TABLE)
+G_DEFINE_TYPE (TotemPropertiesView, totem_properties_view, GTK_TYPE_GRID)
 
 void
 totem_properties_view_register_type (GTypeModule *module)
@@ -296,8 +296,7 @@ totem_properties_view_init (TotemPropertiesView *props)
 	props->priv = g_new0 (TotemPropertiesViewPriv, 1);
 
 	props->priv->vbox = bacon_video_widget_properties_new ();
-	gtk_table_resize (GTK_TABLE (props), 1, 1);
-	gtk_container_add (GTK_CONTAINER (props), props->priv->vbox);
+	gtk_grid_attach (GTK_GRID (props), props->priv->vbox, 0, 0, 1, 1);
 	gtk_widget_show (GTK_WIDGET (props));
 
 	props->priv->props = BACON_VIDEO_WIDGET_PROPERTIES (props->priv->vbox);
diff --git a/src/totem-properties-view.h b/src/totem-properties-view.h
index ab79747..7f75bbb 100644
--- a/src/totem-properties-view.h
+++ b/src/totem-properties-view.h
@@ -40,12 +40,12 @@
 typedef struct TotemPropertiesViewPriv TotemPropertiesViewPriv;
 
 typedef struct {
-	GtkTable parent;
+	GtkGrid parent;
 	TotemPropertiesViewPriv *priv;
 } TotemPropertiesView;
 
 typedef struct {
-	GtkTableClass parent;
+	GtkGridClass parent;
 } TotemPropertiesViewClass;
 
 GType      totem_properties_view_get_type      (void);



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