[gnome-games] Replace some deprecated gtk symbols



commit 603be8134e63034728170811fd6a2f58febb7723
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Mon Jun 20 23:08:06 2011 +0200

    Replace some deprecated gtk symbols

 gnotravex/gnotravex.c                  |    2 +-
 libgames-support/games-frame.c         |    2 +-
 libgames-support/games-frame.h         |    4 ++--
 libgames-support/games-scores-dialog.c |    6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index 1369a69..e2eef60 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -1398,7 +1398,7 @@ create_statusbar (void)
 {
   GtkWidget *status_bar, *time_label, *time_box;
 
-  time_box = gtk_hbox_new (FALSE, 0);
+  time_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   time_label = gtk_label_new (_("Time:"));
   gtk_box_pack_start (GTK_BOX (time_box), time_label, FALSE, FALSE, 0);
   time_label = gtk_label_new (" ");
diff --git a/libgames-support/games-frame.c b/libgames-support/games-frame.c
index cf0ebb8..0fbe35a 100644
--- a/libgames-support/games-frame.c
+++ b/libgames-support/games-frame.c
@@ -29,7 +29,7 @@ enum {
   PROP_LABEL
 };
 
-G_DEFINE_TYPE (GamesFrame, games_frame, GTK_TYPE_VBOX);
+G_DEFINE_TYPE (GamesFrame, games_frame, GTK_TYPE_BOX);
 
 struct GamesFramePrivate {
   GtkWidget *label;
diff --git a/libgames-support/games-frame.h b/libgames-support/games-frame.h
index c8705ef..748b0b6 100644
--- a/libgames-support/games-frame.h
+++ b/libgames-support/games-frame.h
@@ -35,13 +35,13 @@ G_BEGIN_DECLS
 typedef struct GamesFramePrivate GamesFramePrivate;
 
 typedef struct {
-  GtkVBox parent_instance;
+  GtkBox parent_instance;
   /*< private >*/
   GamesFramePrivate *priv;
 } GamesFrame;
 
 typedef struct {
-  GtkVBoxClass parent_class;
+  GtkBoxClass parent_class;
 } GamesFrameClass;
 
 GType      games_frame_get_type  (void);
diff --git a/libgames-support/games-scores-dialog.c b/libgames-support/games-scores-dialog.c
index 42ab2cb..0e97f82 100644
--- a/libgames-support/games-scores-dialog.c
+++ b/libgames-support/games-scores-dialog.c
@@ -501,7 +501,7 @@ static void games_scores_dialog_init (GamesScoresDialog *self)
   g_signal_connect (G_OBJECT (self), "hide", 
 		      G_CALLBACK (games_scores_dialog_hide), NULL);
 
-  vbox = gtk_vbox_new (FALSE, 6);
+  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
   gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
   gtk_box_pack_end (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))),
                     vbox, TRUE, TRUE, 0);
@@ -521,10 +521,10 @@ static void games_scores_dialog_init (GamesScoresDialog *self)
 	                   GTK_JUSTIFY_CENTER);    
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->message, FALSE, FALSE, 0);
 
-  self->priv->hdiv = gtk_hseparator_new ();
+  self->priv->hdiv = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->hdiv, FALSE, FALSE, 0);
 
-  self->priv->catbar = gtk_hbox_new (FALSE, 12);
+  self->priv->catbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->catbar, FALSE, FALSE, 0);
 
   self->priv->label = gtk_label_new (NULL);



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