[devhelp] Use gtk_box_new() instead gtk_[v|h]box_new()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Use gtk_box_new() instead gtk_[v|h]box_new()
- Date: Sat, 30 Oct 2010 02:15:34 +0000 (UTC)
commit c717c36837dec9f57ce6b9e934572afbff8a9af3
Author: Javier Jardón <jjardon gnome org>
Date: Sat Oct 30 04:14:25 2010 +0200
Use gtk_box_new() instead gtk_[v|h]box_new()
src/dh-assistant.c | 2 +-
src/dh-search.c | 2 +-
src/dh-window.c | 12 ++++++------
src/eggfindbar.c | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/dh-assistant.c b/src/dh-assistant.c
index 05f8103..730b2b1 100644
--- a/src/dh-assistant.c
+++ b/src/dh-assistant.c
@@ -66,7 +66,7 @@ dh_assistant_init (DhAssistant *assistant)
DhAssistantPriv *priv = GET_PRIVATE (assistant);
GtkWidget *scrolled_window;
- priv->main_box = gtk_vbox_new (FALSE, 0);
+ priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0);
gtk_widget_show (priv->main_box);
gtk_container_add (GTK_CONTAINER (assistant), priv->main_box);
diff --git a/src/dh-search.c b/src/dh-search.c
index 46b2e9f..2e85b03 100644
--- a/src/dh-search.c
+++ b/src/dh-search.c
@@ -630,7 +630,7 @@ dh_search_new (DhBookManager *book_manager)
book_label = gtk_label_new_with_mnemonic (_("Search in:"));
gtk_label_set_mnemonic_widget (GTK_LABEL (book_label), priv->book_combo);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 6);
gtk_box_pack_start (GTK_BOX (hbox), book_label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), priv->book_combo, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (search), hbox, FALSE, FALSE, 0);
diff --git a/src/dh-window.c b/src/dh-window.c
index d6e5e6f..009048f 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -908,10 +908,10 @@ dh_window_init (DhWindow *window)
accel_group = gtk_ui_manager_get_accel_group (priv->manager);
gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
- priv->main_box = gtk_vbox_new (FALSE, 0);
+ priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0);
gtk_widget_show (priv->main_box);
- priv->menu_box = gtk_vbox_new (FALSE, 0);
+ priv->menu_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0);
gtk_widget_show (priv->menu_box);
gtk_container_set_border_width (GTK_CONTAINER (priv->menu_box), 0);
gtk_box_pack_start (GTK_BOX (priv->main_box), priv->menu_box,
@@ -1117,7 +1117,7 @@ window_populate (DhWindow *window)
}
#endif
- priv->hpaned = gtk_hpaned_new ();
+ priv->hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (priv->main_box), priv->hpaned, TRUE, TRUE, 0);
@@ -1169,7 +1169,7 @@ window_populate (DhWindow *window)
G_CALLBACK (window_search_link_selected_cb),
window);
- priv->vbox = gtk_vbox_new (FALSE, 0);
+ priv->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0);
gtk_paned_add2 (GTK_PANED (priv->hpaned), priv->vbox);
/* HTML tabs notebook. */
@@ -1644,7 +1644,7 @@ window_open_new_tab (DhWindow *window,
}
#endif
- vbox = gtk_vbox_new (0, FALSE);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE);
gtk_widget_show (vbox);
/* XXX: Really it would be much better to use real structures */
@@ -1768,7 +1768,7 @@ window_new_tab_label (DhWindow *window,
GtkWidget *close_button;
GtkWidget *image;
- hbox = gtk_hbox_new (FALSE, 4);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 4);
label = gtk_label_new (str);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
diff --git a/src/eggfindbar.c b/src/eggfindbar.c
index c6d6184..958c3aa 100644
--- a/src/eggfindbar.c
+++ b/src/eggfindbar.c
@@ -312,7 +312,7 @@ egg_find_bar_init (EggFindBar *find_bar)
/* Find: |_____| */
item = gtk_tool_item_new ();
- box = gtk_hbox_new (FALSE, 12);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12);
alignment = gtk_alignment_new (0.0, 0.5, 1.0, 0.0);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 2, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]