[gdl] Stop using deprecated Gtk[HV]Box(class)?



commit 65c5f7561da612a9a5c39f8c67f338dd3771bad6
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Tue Aug 2 15:52:41 2011 +0200

    Stop using deprecated Gtk[HV]Box(class)?

 gdl/gdl-dock-bar.h       |    2 +-
 gdl/gdl-dock-item-grip.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdl/gdl-dock-bar.h b/gdl/gdl-dock-bar.h
index 48ae634..1dda0e8 100644
--- a/gdl/gdl-dock-bar.h
+++ b/gdl/gdl-dock-bar.h
@@ -55,7 +55,7 @@ struct _GdlDockBar {
 };
 
 struct _GdlDockBarClass {
-    GtkVBoxClass parent_class;
+    GtkBoxClass parent_class;
 };
 
 GType      gdl_dock_bar_get_type            (void); 
diff --git a/gdl/gdl-dock-item-grip.c b/gdl/gdl-dock-item-grip.c
index c275cdd..e1bc013 100644
--- a/gdl/gdl-dock-item-grip.c
+++ b/gdl/gdl-dock-item-grip.c
@@ -62,13 +62,13 @@ G_DEFINE_TYPE (GdlDockItemGrip, gdl_dock_item_grip, GTK_TYPE_CONTAINER);
 GtkWidget*
 gdl_dock_item_create_label_widget(GdlDockItemGrip *grip)
 {
-    GtkHBox *label_box;
+    GtkBox *label_box;
     GtkImage *image;
     GtkLabel *label;
     gchar *stock_id = NULL;
     gchar *title = NULL;
   
-    label_box = (GtkHBox*)gtk_hbox_new (FALSE, 0);
+    label_box = (GtkBox*)gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
     
     g_object_get (G_OBJECT (grip->item), "stock-id", &stock_id, NULL);
     if(stock_id) {   



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