[gtranslator] Use gtk_[widget]_new() instead gtk_[h|v][widget]_new()



commit 28c8305caf9bd611e8c530f58b777fa4e841ee25
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Nov 11 01:14:24 2010 +0100

    Use gtk_[widget]_new() instead gtk_[h|v][widget]_new()

 .../gtr-alternate-language-panel.c                 |    2 +-
 plugins/charmap/gtr-charmap-panel.c                |    2 +-
 plugins/dictionary/gtr-dict-panel.c                |    2 +-
 src/gtr-context.c                                  |    2 +-
 src/toolbareditor/egg-editable-toolbar.c           |    2 +-
 src/toolbareditor/egg-toolbar-editor.c             |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c b/plugins/alternate-language/gtr-alternate-language-panel.c
index 30ab5d3..7e8d587 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -307,7 +307,7 @@ gtr_alternate_lang_panel_draw (GtrAlternateLangPanel * panel)
   gtk_box_pack_start (GTK_BOX (panel), hbox, FALSE, TRUE, 0);
 
   /* Button box */
-  buttonbox = gtk_hbutton_box_new ();
+  buttonbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_button_box_set_layout (GTK_BUTTON_BOX (buttonbox), GTK_BUTTONBOX_START);
   gtk_widget_show (buttonbox);
 
diff --git a/plugins/charmap/gtr-charmap-panel.c b/plugins/charmap/gtr-charmap-panel.c
index 929cd58..1be20b7 100644
--- a/plugins/charmap/gtr-charmap-panel.c
+++ b/plugins/charmap/gtr-charmap-panel.c
@@ -92,7 +92,7 @@ gtr_charmap_panel_init (GtrCharmapPanel * panel)
 
   priv = panel->priv = GTR_CHARMAP_PANEL_GET_PRIVATE (panel);
 
-  paned = GTK_PANED (gtk_vpaned_new ());
+  paned = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL));
 
 #ifdef HAVE_GUCHARMAP_2
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
diff --git a/plugins/dictionary/gtr-dict-panel.c b/plugins/dictionary/gtr-dict-panel.c
index bb853f6..eba2beb 100644
--- a/plugins/dictionary/gtr-dict-panel.c
+++ b/plugins/dictionary/gtr-dict-panel.c
@@ -472,7 +472,7 @@ gtr_dict_panel_draw (GtrDictPanel * panel)
                     G_CALLBACK (sidebar_page_changed_cb), panel);
 
   /* Paned */
-  panel->priv->paned = GTK_PANED (gtk_vpaned_new ());
+  panel->priv->paned = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL));
   gtk_box_pack_start (GTK_BOX (panel), GTK_WIDGET (panel->priv->paned), TRUE,
                       TRUE, 0);
   gtk_paned_pack1 (panel->priv->paned, vbox, FALSE, TRUE);
diff --git a/src/gtr-context.c b/src/gtr-context.c
index 1856605..866fbb1 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -370,7 +370,7 @@ gtr_context_panel_init (GtrContextPanel *panel)
                     G_CALLBACK (visibility_notify_event), panel);
 
   /* Buttons */
-  priv->button_box = gtk_hbutton_box_new ();
+  priv->button_box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_box_pack_start (GTK_BOX (panel), priv->button_box, FALSE, FALSE, 0);
 
   button = gtk_button_new_from_stock (GTK_STOCK_OK);
diff --git a/src/toolbareditor/egg-editable-toolbar.c b/src/toolbareditor/egg-editable-toolbar.c
index 0320c25..ddb24d6 100644
--- a/src/toolbareditor/egg-editable-toolbar.c
+++ b/src/toolbareditor/egg-editable-toolbar.c
@@ -1784,7 +1784,7 @@ new_separator_pixbuf (void)
   GtkWidget *separator;
   GdkPixbuf *pixbuf;
 
-  separator = gtk_vseparator_new ();
+  separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
   pixbuf = new_pixbuf_from_widget (separator);
   return pixbuf;
 }
diff --git a/src/toolbareditor/egg-toolbar-editor.c b/src/toolbareditor/egg-toolbar-editor.c
index 9763342..30f6bfd 100644
--- a/src/toolbareditor/egg-toolbar-editor.c
+++ b/src/toolbareditor/egg-toolbar-editor.c
@@ -543,7 +543,7 @@ append_table (GtkTable *table, GList *items, gint y, gint width)
 
       if (y > 0)
         {
-          item = gtk_hseparator_new ();
+          item = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
           alignment = gtk_alignment_new (0.5, 0.5, 1.0, 0.0);
           gtk_container_add (GTK_CONTAINER (alignment), item);
           gtk_widget_show (alignment);



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