[Xfce4-commits] [apps/xfce4-screenshooter] 20/38: Replace GtkV/HBox by GtkBox
noreply at xfce.org
noreply at xfce.org
Fri Apr 28 03:07:16 CEST 2017
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit 4f2d81346ff29e8328fd4ec319e53e0632824a18
Author: Andre Miranda <andre42m at gmail.com>
Date: Thu Mar 30 22:23:17 2017 -0300
Replace GtkV/HBox by GtkBox
---
lib/screenshooter-dialogs.c | 18 +++++++++---------
lib/screenshooter-job-callbacks.c | 12 ++++++------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index 539ab44..66f5984 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -740,7 +740,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))), main_alignment, TRUE, TRUE, 0);
/* Create the main box for the dialog */
- vbox = gtk_vbox_new (FALSE, 10);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (main_alignment), vbox);
@@ -750,7 +750,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
gtk_box_pack_start (GTK_BOX (vbox), layout_table, TRUE, TRUE, 0);
/* Create the main box for the regions */
- area_main_box = gtk_vbox_new (FALSE, 6);
+ area_main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_table_attach_defaults (GTK_TABLE (layout_table), area_main_box, 0, 1, 0, 2);
/* Create area label */
@@ -773,7 +773,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
gtk_container_add (GTK_CONTAINER (area_main_box), area_alignment);
/* Create area box */
- area_box = gtk_vbox_new (FALSE, 6);
+ area_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (area_alignment), area_box);
gtk_container_set_border_width (GTK_CONTAINER (area_box), 0);
@@ -842,7 +842,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
G_CALLBACK (cb_toggle_set_insensi), show_mouse_checkbox);
/* Create the main box for the delay stuff */
- delay_main_box = gtk_vbox_new (FALSE, 6);
+ delay_main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_table_attach_defaults (GTK_TABLE (layout_table), delay_main_box, 1, 2, 0, 1);
/* Create delay label */
@@ -865,12 +865,12 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
gtk_box_pack_start (GTK_BOX (delay_main_box), delay_alignment, FALSE, FALSE, 0);
/* Create delay box */
- delay_box = gtk_vbox_new (FALSE, 0);
+ delay_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (delay_alignment), delay_box);
gtk_container_set_border_width (GTK_CONTAINER (delay_box), 0);
/* Create delay spinner */
- delay_spinner_box = gtk_hbox_new (FALSE, 4);
+ delay_spinner_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_box_pack_start (GTK_BOX (delay_box), delay_spinner_box, FALSE, FALSE, 0);
delay_spinner = gtk_spin_button_new_with_range(0.0, 60.0, 1.0);
@@ -942,7 +942,7 @@ GtkWidget *screenshooter_actions_dialog_new (ScreenshotData *sd)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))), main_alignment, TRUE, TRUE, 0);
/* Create the main box for the dialog */
- vbox = gtk_vbox_new (FALSE, 10);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (main_alignment), vbox);
@@ -952,7 +952,7 @@ GtkWidget *screenshooter_actions_dialog_new (ScreenshotData *sd)
gtk_box_pack_start (GTK_BOX (vbox), layout_table, TRUE, TRUE, 0);
/* Create the box which containes the left part of the UI */
- left_box = gtk_vbox_new (FALSE, 6);
+ left_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_table_attach_defaults (GTK_TABLE (layout_table), left_box, 0, 1, 0, 1);
/* Create actions label */
@@ -1069,7 +1069,7 @@ GtkWidget *screenshooter_actions_dialog_new (ScreenshotData *sd)
gtk_table_attach (GTK_TABLE (actions_table), imgur_radio_button, 0, 1, 4, 5, GTK_FILL, GTK_FILL, 0, 0);
/* Preview box */
- preview_box = gtk_vbox_new (FALSE, 6);
+ preview_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (preview_box), 0);
gtk_table_attach_defaults (GTK_TABLE (layout_table), preview_box, 1, 2, 0, 1);
diff --git a/lib/screenshooter-job-callbacks.c b/lib/screenshooter-job-callbacks.c
index c2144a1..b421a36 100644
--- a/lib/screenshooter-job-callbacks.c
+++ b/lib/screenshooter-job-callbacks.c
@@ -53,12 +53,12 @@ create_spinner_dialog (const gchar *title,
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), main_alignment, TRUE, TRUE, 0);
/* Create the main box for the dialog */
- main_box = gtk_vbox_new (FALSE, 10);
+ main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (main_box), 12);
gtk_container_add (GTK_CONTAINER (main_alignment), main_box);
/* Top horizontal box for the spinner */
- hbox= gtk_hbox_new (FALSE, 0);
+ hbox= gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
gtk_container_add (GTK_CONTAINER (main_box), hbox);
@@ -194,7 +194,7 @@ cb_ask_for_information (ScreenshooterJob *job,
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), main_alignment, TRUE, TRUE, 0);
/* Create the main box for the dialog */
- vbox = gtk_vbox_new (FALSE, 10);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (main_alignment), vbox);
@@ -450,7 +450,7 @@ void cb_image_uploaded (ScreenshooterJob *job,
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), main_alignment, TRUE, TRUE, 0);
/* Create the main box for the dialog */
- vbox = gtk_vbox_new (FALSE, 10);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (main_alignment), vbox);
@@ -474,7 +474,7 @@ void cb_image_uploaded (ScreenshooterJob *job,
gtk_container_add (GTK_CONTAINER (vbox), links_alignment);
/* Links box */
- links_box = gtk_vbox_new (FALSE, 10);
+ links_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (links_box), 0);
gtk_container_add (GTK_CONTAINER (links_alignment), links_box);
@@ -522,7 +522,7 @@ void cb_image_uploaded (ScreenshooterJob *job,
gtk_container_add (GTK_CONTAINER (vbox), code_alignment);
/* Links box */
- code_box = gtk_vbox_new (FALSE, 10);
+ code_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_set_border_width (GTK_CONTAINER (code_box), 0);
gtk_container_add (GTK_CONTAINER (code_alignment), code_box);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list