[totem] Minor GtkBox fixes in TotemTrackerWidget



commit de635df610be62dae82c4769f465c268b7885bf7
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jun 20 18:12:15 2011 +0100

    Minor GtkBox fixes in TotemTrackerWidget

 src/plugins/tracker/totem-tracker-widget.c |   12 ++++++++----
 src/plugins/tracker/totem-tracker-widget.h |    4 ++--
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/tracker/totem-tracker-widget.c b/src/plugins/tracker/totem-tracker-widget.c
index fa91c05..d53d1cd 100644
--- a/src/plugins/tracker/totem-tracker-widget.c
+++ b/src/plugins/tracker/totem-tracker-widget.c
@@ -46,7 +46,7 @@
 
 #define TOTEM_TRACKER_MAX_RESULTS_SIZE	20
 
-G_DEFINE_TYPE (TotemTrackerWidget, totem_tracker_widget, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (TotemTrackerWidget, totem_tracker_widget, GTK_TYPE_BOX)
 
 struct TotemTrackerWidgetPrivate {
 	GtkWidget *search_entry;
@@ -786,12 +786,16 @@ totem_tracker_widget_init (TotemTrackerWidget *widget)
 	GdkScreen *screen;
 	GtkIconTheme *theme;
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (widget), GTK_ORIENTATION_VERTICAL);
+
 	widget->priv = G_TYPE_INSTANCE_GET_PRIVATE (widget, TOTEM_TYPE_TRACKER_WIDGET, TotemTrackerWidgetPrivate);
 
 	init_result_list (widget);
 
-	v_box = gtk_vbox_new (FALSE, 6);
-	h_box = gtk_hbox_new (FALSE, 6);
+	v_box = gtk_box_new (FALSE, 6);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (v_box), GTK_ORIENTATION_VERTICAL);
+
+	h_box = gtk_box_new (FALSE, 6);
 
 	/* Search entry */
 	widget->priv->search_entry = gtk_entry_new ();
@@ -814,7 +818,7 @@ totem_tracker_widget_init (TotemTrackerWidget *widget)
 	gtk_box_pack_start (GTK_BOX (v_box), widget->priv->status_label, FALSE, TRUE, 2);
 
 	/* Initialise the pager box */
-	pager_box = gtk_hbox_new (FALSE, 6);
+	pager_box = gtk_box_new (FALSE, 6);
 	widget->priv->next_button = gtk_button_new_from_stock (GTK_STOCK_GO_FORWARD);
 	widget->priv->previous_button = gtk_button_new_from_stock (GTK_STOCK_GO_BACK);
 	adjust = GTK_ADJUSTMENT (gtk_adjustment_new (1, 1, 1, 1, 5, 0));
diff --git a/src/plugins/tracker/totem-tracker-widget.h b/src/plugins/tracker/totem-tracker-widget.h
index fa24d74..16b3ae8 100644
--- a/src/plugins/tracker/totem-tracker-widget.h
+++ b/src/plugins/tracker/totem-tracker-widget.h
@@ -38,14 +38,14 @@
 typedef struct TotemTrackerWidgetPrivate  TotemTrackerWidgetPrivate;
 
 typedef struct TotemTrackerWidget {
-	GtkEventBox parent;
+	GtkBox parent;
 	
 	TotemObject *totem;
 	TotemTrackerWidgetPrivate *priv;
 } TotemTrackerWidget;
 
 typedef struct {
-	GtkEventBoxClass parent_class;
+	GtkBoxClass parent_class;
 } TotemTrackerWidgetClass;
 
 GType       totem_tracker_widget_get_type   (void);



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