[file-roller] removed calls to gtk_[vh]box_new
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] removed calls to gtk_[vh]box_new
- Date: Fri, 21 Oct 2011 16:37:58 +0000 (UTC)
commit 64ae02ed630eb9e4617da795879cc3067dc7b1fe
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 21 17:57:10 2011 +0200
removed calls to gtk_[vh]box_new
src/dlg-add-files.c | 2 +-
src/dlg-add-folder.c | 6 +++---
src/dlg-extract.c | 14 +++++++-------
src/fr-window.c | 22 +++++++++++-----------
src/gtk-utils.c | 12 ++++++------
5 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/src/dlg-add-files.c b/src/dlg-add-files.c
index 2a0191e..0d63087 100644
--- a/src/dlg-add-files.c
+++ b/src/dlg-add-files.c
@@ -163,7 +163,7 @@ add_files_cb (GtkWidget *widget,
* newer than the archive version. */
data->add_if_newer_checkbutton = gtk_check_button_new_with_mnemonic (_("Add only if _newer"));
- main_box = gtk_hbox_new (FALSE, 20);
+ main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 20);
gtk_container_set_border_width (GTK_CONTAINER (main_box), 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (file_sel), main_box);
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index 87e6d45..55f3cdc 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -253,11 +253,11 @@ add_folder_cb (GtkWidget *widget,
data->save_button = gtk_button_new_with_mnemonic (_("Sa_ve Options"));
data->clear_button = gtk_button_new_with_mnemonic (_("_Reset Options"));
- main_box = gtk_hbox_new (FALSE, 20);
+ main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 20);
gtk_container_set_border_width (GTK_CONTAINER (main_box), 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (file_sel), main_box);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
gtk_box_pack_start (GTK_BOX (main_box), vbox, TRUE, TRUE, 0);
@@ -317,7 +317,7 @@ add_folder_cb (GtkWidget *widget,
/**/
- vbox = gtk_vbox_new (FALSE, 5);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
gtk_box_pack_start (GTK_BOX (main_box), vbox, FALSE, FALSE, 0);
diff --git a/src/dlg-extract.c b/src/dlg-extract.c
index 76d1305..9ce1b62 100644
--- a/src/dlg-extract.c
+++ b/src/dlg-extract.c
@@ -318,13 +318,13 @@ create_extra_widget (DialogData *data)
GtkWidget *label48;
GtkWidget *vbox15;
- vbox1 = gtk_vbox_new (FALSE, 6);
+ vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox1), 0);
- hbox28 = gtk_hbox_new (FALSE, 12);
+ hbox28 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (vbox1), hbox28, TRUE, TRUE, 0);
- vbox19 = gtk_vbox_new (FALSE, 6);
+ vbox19 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (hbox28), vbox19, TRUE, TRUE, 0);
e_files_label = gtk_label_new ("");
@@ -333,7 +333,7 @@ create_extra_widget (DialogData *data)
gtk_label_set_justify (GTK_LABEL (e_files_label), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (e_files_label), 0, 0.5);
- hbox29 = gtk_hbox_new (FALSE, 0);
+ hbox29 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (vbox19), hbox29, TRUE, TRUE, 0);
label47 = gtk_label_new (" ");
@@ -373,7 +373,7 @@ create_extra_widget (DialogData *data)
gtk_radio_button_set_group (GTK_RADIO_BUTTON (data->e_selected_radiobutton), e_files_radiobutton_group);
e_files_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (data->e_selected_radiobutton));
- vbox20 = gtk_vbox_new (FALSE, 6);
+ vbox20 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (hbox28), vbox20, TRUE, TRUE, 0);
e_actions_label = gtk_label_new ("");
@@ -383,14 +383,14 @@ create_extra_widget (DialogData *data)
gtk_label_set_justify (GTK_LABEL (e_actions_label), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (e_actions_label), 0, 0.5);
- hbox30 = gtk_hbox_new (FALSE, 0);
+ hbox30 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (vbox20), hbox30, TRUE, TRUE, 0);
label48 = gtk_label_new (" ");
gtk_box_pack_start (GTK_BOX (hbox30), label48, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label48), GTK_JUSTIFY_LEFT);
- vbox15 = gtk_vbox_new (FALSE, 6);
+ vbox15 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start (GTK_BOX (hbox30), vbox15, TRUE, TRUE, 0);
data->e_recreate_dir_checkbutton = gtk_check_button_new_with_mnemonic (_("Re-crea_te folders"));
diff --git a/src/fr-window.c b/src/fr-window.c
index 23511cf..a36097d 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2535,7 +2535,7 @@ create_the_progress_dialog (FrWindow *window)
/* Main */
- hbox = gtk_hbox_new (FALSE, 24);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 24);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (d)), hbox, FALSE, FALSE, 10);
@@ -2546,7 +2546,7 @@ create_the_progress_dialog (FrWindow *window)
gtk_misc_set_alignment (GTK_MISC (window->priv->pd_icon), 0.5, 0.0);
gtk_box_pack_start (GTK_BOX (hbox), window->priv->pd_icon, FALSE, FALSE, 0);
- vbox = gtk_vbox_new (FALSE, 5);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
/* action label */
@@ -2575,7 +2575,7 @@ create_the_progress_dialog (FrWindow *window)
GtkWidget *hbox;
char *name;
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
lbl = gtk_label_new ("");
@@ -2599,7 +2599,7 @@ create_the_progress_dialog (FrWindow *window)
align = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 6, 0, 0);
- progress_vbox = gtk_vbox_new (FALSE, 6);
+ progress_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (align), progress_vbox);
gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
@@ -5700,7 +5700,7 @@ fr_window_construct (FrWindow *window)
/* filter bar */
- window->priv->filter_bar = filter_box = gtk_hbox_new (FALSE, 6);
+ window->priv->filter_bar = filter_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (filter_box), 3);
fr_window_attach (FR_WINDOW (window), window->priv->filter_bar, FR_WINDOW_AREA_FILTERBAR);
@@ -5776,12 +5776,12 @@ fr_window_construct (FrWindow *window)
/* side pane */
- window->priv->sidepane = gtk_vbox_new (FALSE, 0);
+ window->priv->sidepane = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
sidepane_title = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (sidepane_title), GTK_SHADOW_ETCHED_IN);
- sidepane_title_box = gtk_hbox_new (FALSE, 0);
+ sidepane_title_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (sidepane_title_box), 2);
gtk_container_add (GTK_CONTAINER (sidepane_title), sidepane_title_box);
sidepane_title_label = gtk_label_new (_("Folders"));
@@ -5878,7 +5878,7 @@ fr_window_construct (FrWindow *window)
/* current location */
- location_box = gtk_hbox_new (FALSE, 6);
+ location_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
/* Translators: after the colon there is a folder name. */
window->priv->location_label = gtk_label_new_with_mnemonic (_("_Location:"));
gtk_box_pack_start (GTK_BOX (location_box),
@@ -5975,7 +5975,7 @@ fr_window_construct (FrWindow *window)
gtk_box_set_spacing (GTK_BOX (statusbar_box), 4);
gtk_box_set_child_packing (GTK_BOX (statusbar_box), gtk_statusbar_get_message_area (statusbar), TRUE, TRUE, 0, GTK_PACK_START );
#else
- statusbar_box = gtk_hbox_new (FALSE, 4);
+ statusbar_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
g_object_ref (statusbar->label);
gtk_container_remove (GTK_CONTAINER (statusbar->frame), statusbar->label);
gtk_box_pack_start (GTK_BOX (statusbar_box), statusbar->label, TRUE, TRUE, 0);
@@ -5989,7 +5989,7 @@ fr_window_construct (FrWindow *window)
{
GtkWidget *vbox;
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (statusbar_box), vbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), window->priv->progress_bar, TRUE, TRUE, 1);
gtk_widget_show (vbox);
@@ -7154,7 +7154,7 @@ fr_window_view_last_output (FrWindow *window,
/**/
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
gtk_container_add (GTK_CONTAINER (scrolled), text_view);
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 4e6f40d..79f7715 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -107,7 +107,7 @@ _gtk_message_dialog_new (GtkWindow *parent,
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
- hbox = gtk_hbox_new (FALSE, 24);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 24);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -222,8 +222,8 @@ _gtk_request_dialog_run (GtkWindow *parent,
gtk_entry_set_max_length (GTK_ENTRY (entry), max_length);
gtk_entry_set_text (GTK_ENTRY (entry), default_value);
- hbox = gtk_hbox_new (FALSE, 24);
- vbox = gtk_vbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 24);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -302,7 +302,7 @@ _gtk_yesno_dialog_new (GtkWindow *parent,
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
- hbox = gtk_hbox_new (FALSE, 24);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 24);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -451,10 +451,10 @@ _gtk_error_dialog_new (GtkWindow *parent,
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (text_view), FALSE);
}
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- hbox = gtk_hbox_new (FALSE, 12);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]