[Xfce4-commits] [apps/xfce4-dict] 04/43: Use GtkBox instead of GtkHBox/GtkVBox
noreply at xfce.org
noreply at xfce.org
Tue Nov 1 00:31:17 CET 2016
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository apps/xfce4-dict.
commit e5aa9e0b02681a8bb00426cccbd0673881234ec6
Author: Andre Miranda <andre42m at gmail.com>
Date: Tue Jun 21 23:08:06 2016 -0300
Use GtkBox instead of GtkHBox/GtkVBox
---
lib/dictd.c | 2 +-
lib/gui.c | 8 ++++----
lib/prefs.c | 20 ++++++++++----------
lib/speedreader.c | 14 +++++++-------
panel-plugin/xfce4-dict-plugin.c | 2 +-
5 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/lib/dictd.c b/lib/dictd.c
index f2e9781..d9364d7 100644
--- a/lib/dictd.c
+++ b/lib/dictd.c
@@ -751,7 +751,7 @@ void dict_dictd_get_information(GtkWidget *button, DictData *dd)
GTK_WINDOW(dd->window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
- vbox = gtk_vbox_new(FALSE, 12);
+ vbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), vbox);
gtk_box_set_spacing(GTK_BOX(vbox), 6);
diff --git a/lib/gui.c b/lib/gui.c
index 971af69..5c648a3 100644
--- a/lib/gui.c
+++ b/lib/gui.c
@@ -739,19 +739,19 @@ void dict_gui_create_main_window(DictData *dd)
gtk_window_set_icon(GTK_WINDOW(dd->window), icon);
g_object_unref(icon);
- main_box = gtk_vbox_new(FALSE, 0);
+ main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show(main_box);
gtk_container_add(GTK_CONTAINER(dd->window), main_box);
gtk_box_pack_start(GTK_BOX(main_box), create_file_menu(dd), FALSE, TRUE, 0);
/* entry box (label, entry, buttons) */
- entry_box = gtk_hbox_new(FALSE, 5);
+ entry_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_widget_show(entry_box);
gtk_container_set_border_width(GTK_CONTAINER(entry_box), 2);
gtk_box_pack_start(GTK_BOX(main_box), entry_box, FALSE, TRUE, 5);
- label_box = gtk_hbox_new(FALSE, 5);
+ label_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_widget_show(label_box);
gtk_box_pack_start(GTK_BOX(entry_box), label_box, TRUE, TRUE, 5);
@@ -799,7 +799,7 @@ void dict_gui_create_main_window(DictData *dd)
gtk_box_pack_end(GTK_BOX(entry_box), dd->close_button, FALSE, FALSE, 0);
/* search method chooser */
- method_chooser = gtk_hbox_new(FALSE, 0);
+ method_chooser = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show(method_chooser);
gtk_box_pack_start(GTK_BOX(main_box), method_chooser, FALSE, FALSE, 0);
diff --git a/lib/prefs.c b/lib/prefs.c
index d8bc6dd..2ff5e46 100644
--- a/lib/prefs.c
+++ b/lib/prefs.c
@@ -292,9 +292,9 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
GtkWidget *color_link, *color_phon, *color_success, *color_error;
GSList *search_method;
- notebook_vbox = gtk_vbox_new(FALSE, 2);
+ notebook_vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 2);
gtk_widget_show(notebook_vbox);
- inner_vbox = gtk_vbox_new(FALSE, 5);
+ inner_vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width(GTK_CONTAINER(inner_vbox), 5);
gtk_widget_show(inner_vbox);
gtk_notebook_insert_page(GTK_NOTEBOOK(notebook),
@@ -437,7 +437,7 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
gtk_widget_show(panel_entry_size_spinner);
- pe_hbox = gtk_hbox_new(FALSE, 0);
+ pe_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_widget_show(pe_hbox);
gtk_box_pack_start(GTK_BOX(pe_hbox), panel_entry_size_label, FALSE, FALSE, 10);
@@ -461,9 +461,9 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
GtkWidget *table, *button_get_list, *button_get_info;
GtkWidget *server_entry, *port_spinner, *dict_combo;
- notebook_vbox = gtk_vbox_new(FALSE, 2);
+ notebook_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
gtk_widget_show(notebook_vbox);
- inner_vbox = gtk_vbox_new(FALSE, 5);
+ inner_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width(GTK_CONTAINER(inner_vbox), 5);
gtk_widget_show(inner_vbox);
gtk_notebook_insert_page(GTK_NOTEBOOK(notebook),
@@ -582,9 +582,9 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
{
GtkWidget *label, *web_entry_label, *web_entry, *web_entry_box, *web_dicts_table;
- notebook_vbox = gtk_vbox_new(FALSE, 5);
+ notebook_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_widget_show(notebook_vbox);
- inner_vbox = gtk_vbox_new(FALSE, 5);
+ inner_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width(GTK_CONTAINER(inner_vbox), 5);
gtk_widget_show(inner_vbox);
gtk_notebook_insert_page(GTK_NOTEBOOK(notebook),
@@ -603,7 +603,7 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
gtk_entry_set_text(GTK_ENTRY(web_entry), dd->web_url);
gtk_widget_show(web_entry);
- web_entry_box = gtk_hbox_new(FALSE, 0);
+ web_entry_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show(web_entry_box);
web_dicts_table = create_web_dicts_table(web_entry);
@@ -632,9 +632,9 @@ GtkWidget *dict_prefs_dialog_show(GtkWidget *parent, DictData *dd)
GtkListStore *store;
GtkCellRenderer *renderer;
- notebook_vbox = gtk_vbox_new(FALSE, 5);
+ notebook_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_widget_show(notebook_vbox);
- inner_vbox = gtk_vbox_new(FALSE, 5);
+ inner_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width(GTK_CONTAINER(inner_vbox), 5);
gtk_widget_show(inner_vbox);
gtk_notebook_insert_page(GTK_NOTEBOOK(notebook),
diff --git a/lib/speedreader.c b/lib/speedreader.c
index 59b4226..e2b25cb 100644
--- a/lib/speedreader.c
+++ b/lib/speedreader.c
@@ -592,7 +592,7 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
priv->check_mark_paragraphs = gtk_check_button_new_with_mnemonic(_("_Mark Paragraphs"));
- hbox_words = gtk_hbox_new(FALSE, 0);
+ hbox_words = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(hbox_words), label_words, FALSE, FALSE, 6);
gtk_box_pack_start(GTK_BOX(hbox_words), priv->spin_wpm, FALSE, FALSE, 6);
gtk_box_pack_start(GTK_BOX(hbox_words), priv->check_mark_paragraphs, FALSE, FALSE, 12);
@@ -608,7 +608,7 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
G_CALLBACK(sr_spin_grouping_changed_cb), label_grouping_desc);
sr_spin_grouping_changed_cb(GTK_SPIN_BUTTON(priv->spin_grouping), GTK_LABEL(label_grouping_desc));
- hbox_grouping = gtk_hbox_new(FALSE, 0);
+ hbox_grouping = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(hbox_grouping), label_grouping, FALSE, FALSE, 6);
gtk_box_pack_start(GTK_BOX(hbox_grouping), priv->spin_grouping, FALSE, FALSE, 6);
gtk_box_pack_start(GTK_BOX(hbox_grouping), label_grouping_desc, FALSE, FALSE, 6);
@@ -619,7 +619,7 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
priv->button_font = gtk_font_button_new();
gtk_label_set_mnemonic_widget(GTK_LABEL(label_font), priv->button_font);
- hbox_font = gtk_hbox_new(FALSE, 0);
+ hbox_font = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(hbox_font), label_font, FALSE, FALSE, 6);
gtk_box_pack_start(GTK_BOX(hbox_font), priv->button_font, FALSE, FALSE, 6);
@@ -669,12 +669,12 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
gtk_widget_set_tooltip_text(button_clear, _("Clear the contents of the text field"));
#endif
- vbox_text_buttons = gtk_vbox_new(FALSE, 6);
+ vbox_text_buttons = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start(GTK_BOX(vbox_text_buttons), button_open, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(vbox_text_buttons), button_paste, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(vbox_text_buttons), button_clear, FALSE, FALSE, 0);
- hbox_text = gtk_hbox_new(FALSE, 0);
+ hbox_text = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(hbox_text), swin, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox_text), vbox_text_buttons, FALSE, FALSE, 3);
@@ -694,7 +694,7 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
g_signal_connect(dialog, "response", G_CALLBACK(xfd_speed_reader_response_cb), NULL);
- vbox = gtk_vbox_new(FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start(GTK_BOX(vbox), label_intro, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), hbox_words, FALSE, FALSE, 3);
gtk_box_pack_start(GTK_BOX(vbox), hbox_grouping, FALSE, FALSE, 3);
@@ -707,7 +707,7 @@ static void xfd_speed_reader_init(XfdSpeedReader *dialog)
priv->display_label = gtk_label_new(NULL);
gtk_widget_show(priv->display_label);
- vbox = gtk_vbox_new(FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_box_pack_start(GTK_BOX(vbox), priv->display_label, TRUE, TRUE, 6);
priv->second_page = vbox;
diff --git a/panel-plugin/xfce4-dict-plugin.c b/panel-plugin/xfce4-dict-plugin.c
index 9d79df6..43fdca4 100644
--- a/panel-plugin/xfce4-dict-plugin.c
+++ b/panel-plugin/xfce4-dict-plugin.c
@@ -468,7 +468,7 @@ static void dict_plugin_construct(XfcePanelPlugin *plugin)
g_signal_connect(dpd->dd->panel_entry, "button-press-event", G_CALLBACK(entry_buttonpress_cb), dpd);
g_signal_connect(dpd->dd->panel_entry, "changed", G_CALLBACK(entry_changed_cb), dpd);
- dpd->box = gtk_hbox_new(FALSE, 3);
+ dpd->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_widget_show(dpd->box);
gtk_box_pack_start(GTK_BOX(dpd->box), dpd->panel_button, FALSE, FALSE, 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list