[sound-juicer] Replace GtkHBox/GtkVBox with GtkBox



commit 54e28b4da1943bb8af344b3b73252bcb1519fa28
Author: phantomjinx <p g richardson phantomjinx co uk>
Date:   Fri Apr 20 20:43:59 2012 +0200

    Replace GtkHBox/GtkVBox with GtkBox
    
    This fixes deprecation warnings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674489

 src/egg-play-preview.c |    6 +++---
 src/egg-play-preview.h |    6 +++---
 src/sj-main.c          |    4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/egg-play-preview.c b/src/egg-play-preview.c
index 0d7e99f..d880fee 100644
--- a/src/egg-play-preview.c
+++ b/src/egg-play-preview.c
@@ -122,7 +122,7 @@ static void _stop                            (EggPlayPreview *play_preview);
 
 static guint signals[LAST_SIGNAL] = { 0 };
 
-G_DEFINE_TYPE (EggPlayPreview, egg_play_preview, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (EggPlayPreview, egg_play_preview, GTK_TYPE_BOX)
 
 static void
 egg_play_preview_class_init (EggPlayPreviewClass *klass)
@@ -255,7 +255,7 @@ egg_play_preview_init (EggPlayPreview *play_preview)
 	gtk_box_set_spacing (GTK_BOX (play_preview), 6);
 
 	/* track info */
-	vbox = gtk_vbox_new (TRUE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
 	priv->title_label = gtk_label_new (NULL);
 	gtk_label_set_justify (GTK_LABEL (priv->title_label), GTK_JUSTIFY_LEFT);
@@ -274,7 +274,7 @@ egg_play_preview_init (EggPlayPreview *play_preview)
 	gtk_misc_set_alignment (GTK_MISC (priv->artist_album_label), 0.0, 0.5);
 	gtk_box_pack_start (GTK_BOX (vbox), priv->artist_album_label, TRUE, TRUE, 0);
 
-	hbox = gtk_hbox_new (FALSE, 12);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
 
 	/* play button */
 	priv->play_button = gtk_button_new ();
diff --git a/src/egg-play-preview.h b/src/egg-play-preview.h
index f62eb57..efb4753 100644
--- a/src/egg-play-preview.h
+++ b/src/egg-play-preview.h
@@ -2,7 +2,7 @@
 
 /*
  * EggPlayPreview GTK+ Widget - egg-play-preview.h
- * 
+ *
  * Copyright (C) 2008 Luca Cavalli <luca cavalli gmail com>
  *
  * This program is free software; you can redistribute it and/or
@@ -43,7 +43,7 @@ typedef struct _EggPlayPreviewClass   EggPlayPreviewClass;
 typedef struct _EggPlayPreviewPrivate EggPlayPreviewPrivate;
 
 struct _EggPlayPreview {
-	GtkHBox parent;
+	GtkBox parent;
 
 	gchar *file;
 
@@ -52,7 +52,7 @@ struct _EggPlayPreview {
 };
 
 struct _EggPlayPreviewClass {
-	GtkHBoxClass parent_class;
+	GtkBoxClass parent_class;
 
 	/* signals */
 	void (* play)  (EggPlayPreview *play_preview);
diff --git a/src/sj-main.c b/src/sj-main.c
index 7f26df9..cbfbd8a 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -341,7 +341,7 @@ set_info_bar_text_and_icon (GtkInfoBar  *infobar,
 
   ally_target = gtk_widget_get_accessible (button);
 
-  hbox_content = gtk_hbox_new (FALSE, 8);
+  hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); 
   gtk_widget_show (hbox_content);
 
   image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG);
@@ -349,7 +349,7 @@ set_info_bar_text_and_icon (GtkInfoBar  *infobar,
   gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
   gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
 
-  vbox = gtk_vbox_new (FALSE, 6);
+  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); 
   gtk_widget_show (vbox);
   gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
 



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