[totem] main: Fix vbox/hbox deprecations



commit dd83ab0c191c3972ec46569a81f36385df9fb8fb
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 30 14:44:32 2011 +0100

    main: Fix vbox/hbox deprecations

 src/totem-interface.c |    3 ++-
 src/totem-statusbar.c |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-interface.c b/src/totem-interface.c
index a17fef5..024cf37 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -143,7 +143,8 @@ totem_interface_error_with_link (const char *title, const char *reason,
 	error_dialog = totem_interface_error_dialog (title, reason, parent);
 	link_button = gtk_link_button_new_with_label (uri, label);
 
-	hbox = gtk_hbox_new (TRUE, 0);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+	gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
 	gtk_box_pack_start (GTK_BOX (hbox), link_button, FALSE, FALSE, 0);
 	gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (error_dialog))), hbox, TRUE, FALSE, 0);
 	gtk_widget_show_all (hbox);
diff --git a/src/totem-statusbar.c b/src/totem-statusbar.c
index ac628a5..e5e2cf0 100644
--- a/src/totem-statusbar.c
+++ b/src/totem-statusbar.c
@@ -90,7 +90,7 @@ totem_statusbar_init (TotemStatusbar *statusbar)
   gtk_label_set_ellipsize (GTK_LABEL (label), FALSE);
 
   /* progressbar for network streams */
-  vbox = gtk_vbox_new (FALSE, 0);
+  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
   gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, TRUE, 0);
   gtk_widget_show (vbox);
 
@@ -103,7 +103,7 @@ totem_statusbar_init (TotemStatusbar *statusbar)
   gtk_widget_set_size_request (priv->progress, 150, 10);
   //gtk_widget_hide (priv->progress);
 
-  packer = gtk_vseparator_new ();
+  packer = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
   gtk_box_pack_start (GTK_BOX (hbox), packer, FALSE, FALSE, 0);
   gtk_widget_show (packer);
 



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