[nautilus-sendto] Replace deprecated symbols



commit a7b68931d35a7b0c3aa83e00935401709b6f26c0
Author: Patricia Santana Cruz <patriciasantanacruz gmail com>
Date:   Tue Jan 10 10:48:53 2012 +0000

    Replace deprecated symbols
    
    GtkVbox and GtkHbox are deprecated in GTK+3 and therefore, have been
    replaced in the code by GtkBox objects with vertical and horizontal
    orientation.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=666241.

 data/nautilus-sendto.ui                           |    6 ++++--
 data/pack-entry.ui                                |    4 ++--
 src/plugins/evolution/evolution.c                 |    2 +-
 src/plugins/nautilus-sendto-packer.c              |    1 +
 src/plugins/nautilus-sendto-packer.h              |    4 ++--
 src/plugins/nautilus-sendto-progress.c            |    4 ++--
 src/plugins/removable-devices/removable-devices.c |    2 +-
 src/plugins/socialweb/socialweb.c                 |    2 +-
 8 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/data/nautilus-sendto.ui b/data/nautilus-sendto.ui
index 4c631cb..6c7a80a 100644
--- a/data/nautilus-sendto.ui
+++ b/data/nautilus-sendto.ui
@@ -59,8 +59,9 @@
               </packing>
             </child>
             <child>
-              <object class="GtkHBox" id="hbox_contacts_widgets">
+              <object class="GtkBox" id="hbox_contacts_widgets">
                 <property name="visible">True</property>
+                <property name="orientation">horizontal</property>
                 <property name="spacing">12</property>
                 <child>
                   <object class="GtkNotebook" id="contacts_notebook">
@@ -119,8 +120,9 @@
                     <property name="xscale">0</property>
                     <property name="yscale">0</property>
                     <child>
-                      <object class="GtkHBox" id="hbox2">
+                      <object class="GtkBox" id="hbox2">
                         <property name="visible">True</property>
+                        <property name="orientation">horizontal</property>
                         <property name="spacing">2</property>
                         <child>
                           <object class="GtkSpinner" id="spinner">
diff --git a/data/pack-entry.ui b/data/pack-entry.ui
index 5ff38da..fba10d8 100644
--- a/data/pack-entry.ui
+++ b/data/pack-entry.ui
@@ -17,7 +17,7 @@
       </row>
     </data>
   </object>
-                      <object class="GtkVBox" id="vbox4">
+                      <object class="GtkBox" id="vbox4">
                         <property name="visible">True</property>
                         <property name="homogeneous">False</property>
 			<property name="spacing">6</property>
@@ -52,7 +52,7 @@
                             <property name="left_padding">12</property>
                             <property name="right_padding">0</property>
                             <child>
-                              <object class="GtkHBox" id="hbox4">
+                              <object class="GtkBox" id="hbox4">
                                 <property name="visible">True</property>
                                 <property name="homogeneous">False</property>
 				<property name="spacing">6</property>
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index ac4d6aa..6bf3590 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -266,7 +266,7 @@ evolution_plugin_get_widget (NautilusSendtoPlugin *plugin,
 	add_sources (E_CONTACT_ENTRY (p->entry));
 	setup_source_changes (E_CONTACT_ENTRY (p->entry));
 
-	p->vbox = gtk_vbox_new (FALSE, 8);
+	p->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
 	gtk_box_pack_start (GTK_BOX (p->vbox), p->entry, FALSE, FALSE, 0);
 
 	alignment = gtk_alignment_new (0.0, 1.0, 1.0, 0.0);
diff --git a/src/plugins/nautilus-sendto-packer.c b/src/plugins/nautilus-sendto-packer.c
index b6ef788..92ff55c 100644
--- a/src/plugins/nautilus-sendto-packer.c
+++ b/src/plugins/nautilus-sendto-packer.c
@@ -213,6 +213,7 @@ nst_pack_widget_init (NstPackWidget *self)
 						      NAUTILUS_SENDTO_LAST_COMPRESS));
 	g_object_unref (settings);
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 	gtk_container_add (GTK_CONTAINER (self), vbox);
 }
 
diff --git a/src/plugins/nautilus-sendto-packer.h b/src/plugins/nautilus-sendto-packer.h
index 05f4581..08e929c 100644
--- a/src/plugins/nautilus-sendto-packer.h
+++ b/src/plugins/nautilus-sendto-packer.h
@@ -30,12 +30,12 @@
 typedef struct NstPackWidgetPrivate NstPackWidgetPrivate;
 
 typedef struct {
-	GtkVBox parent;
+	GtkBox parent;
 	NstPackWidgetPrivate *priv;
 } NstPackWidget;
 
 typedef struct {
-	GtkVBoxClass parent;
+	GtkBoxClass parent;
 } NstPackWidgetClass;
 
 GType nst_pack_widget_get_type      (void);
diff --git a/src/plugins/nautilus-sendto-progress.c b/src/plugins/nautilus-sendto-progress.c
index 7becb00..f508485 100644
--- a/src/plugins/nautilus-sendto-progress.c
+++ b/src/plugins/nautilus-sendto-progress.c
@@ -160,10 +160,10 @@ nst_progress_bar_init (NstProgressBar *bar)
 
 	bar->priv = NST_PROGRESS_BAR_GET_PRIVATE (bar);
 
-	vbox = gtk_vbox_new (FALSE, 6); 
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_widget_show (vbox);
 
-	hbox = gtk_hbox_new (FALSE, 4); 
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
 	gtk_widget_show (hbox);
 	gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); 
 
diff --git a/src/plugins/removable-devices/removable-devices.c b/src/plugins/removable-devices/removable-devices.c
index 1e011a9..1de966d 100644
--- a/src/plugins/removable-devices/removable-devices.c
+++ b/src/plugins/removable-devices/removable-devices.c
@@ -255,7 +255,7 @@ removable_devices_plugin_get_widget (NautilusSendtoPlugin *plugin,
 	g_signal_connect (G_OBJECT (p->vol_monitor), "mount-added", G_CALLBACK (cb_mount_added), plugin);
 	g_signal_connect (G_OBJECT (p->vol_monitor), "mount-changed", G_CALLBACK (cb_mount_changed), plugin);
 
-	box = gtk_vbox_new (FALSE, 8);
+	box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
 	gtk_box_pack_start (GTK_BOX (box), p->cb, TRUE, FALSE, 0);
 	gtk_widget_show_all (box);
 
diff --git a/src/plugins/socialweb/socialweb.c b/src/plugins/socialweb/socialweb.c
index 68424bd..bbaaf51 100644
--- a/src/plugins/socialweb/socialweb.c
+++ b/src/plugins/socialweb/socialweb.c
@@ -268,7 +268,7 @@ create_widget (SocialwebPlugin *plugin,
 	SocialwebPage *page;
 
 	page = g_new0 (SocialwebPage, 1);
-	page->page = gtk_vbox_new (FALSE, 8);
+	page->page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
 	page->service = g_object_ref (service);
 	page->plugin = plugin;
 	page->progress = nst_progress_bar_new ();



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