[evince] Use gtk_box_new() instead of gtk_[hv]box_new()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Use gtk_box_new() instead of gtk_[hv]box_new()
- Date: Sun, 4 Dec 2011 11:25:17 +0000 (UTC)
commit 28cd78cfa7f05a78de10a5e47b2cbe864c073c93
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Dec 4 12:24:30 2011 +0100
Use gtk_box_new() instead of gtk_[hv]box_new()
libmisc/ev-page-action-widget.c | 2 +-
libview/ev-annotation-window.c | 6 +++---
libview/ev-loading-window.c | 2 +-
libview/ev-view-presentation.c | 2 +-
previewer/ev-previewer-window.c | 2 +-
shell/eggfindbar.c | 2 +-
shell/ev-annotation-properties-dialog.c | 2 +-
shell/ev-message-area.c | 6 +++---
shell/ev-password-view.c | 12 ++++++------
shell/ev-progress-message-area.c | 2 +-
shell/ev-sidebar.c | 4 ++--
shell/ev-window.c | 4 ++--
12 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/libmisc/ev-page-action-widget.c b/libmisc/ev-page-action-widget.c
index 2bc74e6..11d0dc2 100644
--- a/libmisc/ev-page-action-widget.c
+++ b/libmisc/ev-page-action-widget.c
@@ -158,7 +158,7 @@ ev_page_action_widget_init (EvPageActionWidget *action_widget)
GtkWidget *hbox;
AtkObject *obj;
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_spacing (GTK_BOX (hbox), 6);
action_widget->entry = gtk_entry_new ();
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index 8776dd4..3f1a507 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -285,10 +285,10 @@ ev_annotation_window_init (EvAnnotationWindow *window)
gtk_widget_set_can_focus (GTK_WIDGET (window), TRUE);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
/* Title bar */
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
icon = gtk_image_new (); /* FIXME: use the annot icon */
gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0);
@@ -332,7 +332,7 @@ ev_annotation_window_init (EvAnnotationWindow *window)
/* Resize bar */
gtk_window_set_has_resize_grip (GTK_WINDOW(window), FALSE);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
window->resize_sw = gtk_event_box_new ();
gtk_widget_add_events (window->resize_sw, GDK_BUTTON_PRESS_MASK);
diff --git a/libview/ev-loading-window.c b/libview/ev-loading-window.c
index 94576ee..c4872d6 100644
--- a/libview/ev-loading-window.c
+++ b/libview/ev-loading-window.c
@@ -77,7 +77,7 @@ ev_loading_window_init (EvLoadingWindow *window)
const gchar *fg_color_name = "info_fg_color";
const gchar *bg_color_name = "info_bg_color";
- hbox = gtk_hbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
window->spinner = gtk_spinner_new ();
gtk_box_pack_start (GTK_BOX (hbox), window->spinner, FALSE, FALSE, 0);
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 8694e5e..feee302 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -684,7 +684,7 @@ ev_view_presentation_goto_window_create (EvViewPresentation *pview)
gtk_container_add (GTK_CONTAINER (pview->goto_window), frame);
gtk_widget_show (frame);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 3);
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
index 734941e..b1cb2c9 100644
--- a/previewer/ev-previewer-window.c
+++ b/previewer/ev-previewer-window.c
@@ -596,7 +596,7 @@ ev_previewer_window_constructor (GType type,
view_sizing_mode_changed (window->model, NULL, window);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
toolbar = gtk_ui_manager_get_widget (window->ui_manager, "/PreviewToolbar");
gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index f262372..6915f09 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -297,7 +297,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, 12);
alignment = gtk_alignment_new (0.0, 0.5, 1.0, 0.0);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 2, 2);
diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c
index 7a44ccb..6f78064 100644
--- a/shell/ev-annotation-properties-dialog.c
+++ b/shell/ev-annotation-properties-dialog.c
@@ -186,7 +186,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
gtk_widget_set_hexpand (annot_dialog->opacity, TRUE);
gtk_widget_show (annot_dialog->opacity);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
label = gtk_label_new (NULL);
markup = g_strdup_printf ("<small>%s</small>", _("Transparent"));
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index 2c4be75..d37ed87 100644
--- a/shell/ev-message-area.c
+++ b/shell/ev-message-area.c
@@ -96,10 +96,10 @@ ev_message_area_init (EvMessageArea *area)
area->priv = EV_MESSAGE_AREA_GET_PRIVATE (area);
- area->priv->main_box = gtk_vbox_new (FALSE, 12);
+ area->priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
- hbox = gtk_hbox_new (FALSE, 12);
- vbox = gtk_vbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
area->priv->label = gtk_label_new (NULL);
gtk_label_set_use_markup (GTK_LABEL (area->priv->label), TRUE);
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index 99eff8e..58e0ea1 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -122,7 +122,7 @@ ev_password_view_init (EvPasswordView *password_view)
/* set ourselves up */
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
- vbox = gtk_vbox_new (FALSE, 24);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 24);
gtk_container_add (GTK_CONTAINER (password_view), align);
gtk_container_add (GTK_CONTAINER (align), vbox);
@@ -147,7 +147,7 @@ ev_password_view_init (EvPasswordView *password_view)
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
button = gtk_button_new_with_mnemonic (_("_Unlock Document"));
@@ -279,7 +279,7 @@ ev_password_view_ask_password (EvPasswordView *password_view)
-1);
/* Build contents */
- hbox = gtk_hbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0);
gtk_widget_show (hbox);
@@ -291,7 +291,7 @@ ev_password_view_ask_password (EvPasswordView *password_view)
gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0);
gtk_widget_show (icon);
- main_vbox = gtk_vbox_new (FALSE, 18);
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
gtk_box_pack_start (GTK_BOX (hbox), main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
@@ -311,7 +311,7 @@ ev_password_view_ask_password (EvPasswordView *password_view)
FALSE, FALSE, 0);
gtk_widget_show (label);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0);
gtk_widget_show (vbox);
@@ -357,7 +357,7 @@ ev_password_view_ask_password (EvPasswordView *password_view)
GtkWidget *remember_box;
GSList *group;
- remember_box = gtk_vbox_new (FALSE, 6);
+ remember_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (vbox), remember_box,
FALSE, FALSE, 0);
gtk_widget_show (remember_box);
diff --git a/shell/ev-progress-message-area.c b/shell/ev-progress-message-area.c
index 1ed7dd4..2b5d241 100644
--- a/shell/ev-progress-message-area.c
+++ b/shell/ev-progress-message-area.c
@@ -85,7 +85,7 @@ ev_progress_message_area_init (EvProgressMessageArea *area)
contents = _ev_message_area_get_main_box (EV_MESSAGE_AREA (area));
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
area->priv->label = gtk_label_new (NULL);
gtk_label_set_use_markup (GTK_LABEL (area->priv->label), TRUE);
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index c2b2c53..f5afe4e 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -347,7 +347,7 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
G_TYPE_INT);
/* top option menu */
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
ev_sidebar->priv->hbox = hbox;
gtk_box_pack_start (GTK_BOX (ev_sidebar), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
@@ -361,7 +361,7 @@ ev_sidebar_init (EvSidebar *ev_sidebar)
G_CALLBACK (ev_sidebar_select_button_key_press_cb),
ev_sidebar);
- select_hbox = gtk_hbox_new (FALSE, 0);
+ select_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
ev_sidebar->priv->label = gtk_label_new ("");
gtk_box_pack_start (GTK_BOX (select_hbox),
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 768fc1c..70817af 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7104,7 +7104,7 @@ ev_window_init (EvWindow *ev_window)
ev_window->priv->page_mode = PAGE_MODE_DOCUMENT;
ev_window->priv->title = ev_window_title_new (ev_window);
- ev_window->priv->main_box = gtk_vbox_new (FALSE, 0);
+ ev_window->priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (ev_window), ev_window->priv->main_box);
gtk_widget_show (ev_window->priv->main_box);
@@ -7293,7 +7293,7 @@ ev_window_init (EvWindow *ev_window)
ev_sidebar_add_page (EV_SIDEBAR (ev_window->priv->sidebar),
sidebar_widget);
- ev_window->priv->view_box = gtk_vbox_new (FALSE, 0);
+ ev_window->priv->view_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
ev_window->priv->scrolled_window =
GTK_WIDGET (g_object_new (GTK_TYPE_SCROLLED_WINDOW,
"shadow-type", GTK_SHADOW_IN,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]