[balsa/gtk3] Gtk{HV}ButtonBox is deprecated
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Gtk{HV}ButtonBox is deprecated
- Date: Fri, 14 Oct 2011 12:48:51 +0000 (UTC)
commit bd3721702dc410c2cbcb647b741768f91c32c938
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Oct 14 08:39:15 2011 -0400
Gtk{HV}ButtonBox is deprecated
* src/ab-main.c (bab_get_edit_button_box):
* src/ab-window.c (balsa_ab_window_init):
* src/balsa-mime-widget-vcalendar.c (balsa_vevent_widget):
* src/filter-edit-dialog.c (build_left_side), (build_right_side):
* src/filter-run-dialog.c (balsa_filter_run_dialog_init):
* src/main-window.c:
* src/toolbar-prefs.c (create_toolbar_page): deprecation
cleanup.
ChangeLog | 14 ++++++++++++++
src/ab-main.c | 2 +-
src/ab-window.c | 2 +-
src/balsa-mime-widget-vcalendar.c | 2 +-
src/filter-edit-dialog.c | 4 ++--
src/filter-run-dialog.c | 8 ++++----
src/main-window.c | 2 +-
src/toolbar-prefs.c | 2 +-
8 files changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 80980e9..2a746e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2011-10-14 Peter Bloomfield
+
+ Gtk{HV}ButtonBox is deprecated.
+
+ * src/ab-main.c (bab_get_edit_button_box):
+ * src/ab-window.c (balsa_ab_window_init):
+ * src/balsa-mime-widget-vcalendar.c (balsa_vevent_widget):
+ * src/filter-edit-dialog.c (build_left_side), (build_right_side):
+ * src/filter-run-dialog.c (balsa_filter_run_dialog_init):
+ * src/main-window.c:
+ * src/toolbar-prefs.c (create_toolbar_page): deprecation
+ cleanup.
+
+
2011-10-13 Peter Bloomfield
Gtk{HV}Box is deprecated.
diff --git a/src/ab-main.c b/src/ab-main.c
index 395d9ec..8744bbe 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -900,7 +900,7 @@ static GtkWidget*
bab_get_edit_button_box(struct ABMainWindow *abmw)
{
GtkWidget *box;
- box = gtk_hbutton_box_new();
+ box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_container_add(GTK_CONTAINER(box),
abmw->apply_button =
gtk_button_new_from_stock(GTK_STOCK_APPLY));
diff --git a/src/ab-window.c b/src/ab-window.c
index 8ca0adf..9476b85 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -306,7 +306,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
gtk_widget_set_size_request(scrolled_window, 300, 250);
/* Buttons ... */
- hbox = gtk_hbutton_box_new();
+ hbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout(GTK_BUTTON_BOX(hbox), GTK_BUTTONBOX_SPREAD);
gtk_grid_attach(GTK_GRID(grid), hbox, 0, 2, 1, 1);
gtk_widget_show(GTK_WIDGET(hbox));
diff --git a/src/balsa-mime-widget-vcalendar.c b/src/balsa-mime-widget-vcalendar.c
index d8b0e7e..deaf985 100644
--- a/src/balsa-mime-widget-vcalendar.c
+++ b/src/balsa-mime-widget-vcalendar.c
@@ -237,7 +237,7 @@ balsa_vevent_widget(LibBalsaVEvent * event, gboolean may_reply,
label =
gtk_label_new(_("The sender asks you for a reply to this request:"));
gtk_container_add(GTK_CONTAINER(box), label);
- bbox = gtk_hbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox),
GTK_BUTTONBOX_SPREAD);
gtk_container_add(GTK_CONTAINER(box), bbox);
diff --git a/src/filter-edit-dialog.c b/src/filter-edit-dialog.c
index 7ba0acb..0e2a1e2 100644
--- a/src/filter-edit-dialog.c
+++ b/src/filter-edit-dialog.c
@@ -216,7 +216,7 @@ build_left_side(void)
gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 2);
/* new and delete buttons */
- bbox = gtk_hbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing(GTK_BOX(bbox), 2);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
@@ -498,7 +498,7 @@ build_right_side(GtkWindow * window)
page, gtk_label_new(_("Action")));
/* button box */
- bbox = gtk_hbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start(GTK_BOX(rightside), bbox, FALSE, FALSE, 0);
fe_apply_button = gtk_button_new_from_stock(GTK_STOCK_APPLY);
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index 1d25b64..6ada96b 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -308,7 +308,7 @@ void balsa_filter_run_dialog_init(BalsaFilterRunDialog * p)
gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0);
/* To keep a consistent look, make a button box for a single button. */
- bbox = gtk_hbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing(GTK_BOX(bbox), 2);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 2);
@@ -319,9 +319,9 @@ void balsa_filter_run_dialog_init(BalsaFilterRunDialog * p)
g_signal_connect_swapped(G_OBJECT(button), "clicked",
G_CALLBACK(fr_apply_selected_pressed), p);
gtk_container_add(GTK_CONTAINER(bbox), button);
-
+
/* Buttons between the 2 lists */
- bbox = gtk_vbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
gtk_box_set_spacing(GTK_BOX(bbox), 2);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
@@ -356,7 +356,7 @@ void balsa_filter_run_dialog_init(BalsaFilterRunDialog * p)
gtk_box_pack_start(GTK_BOX(vbox),sw, TRUE, TRUE, 0);
/* up down arrow buttons */
- bbox = gtk_hbutton_box_new();
+ bbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing(GTK_BOX(bbox), 2);
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_SPREAD);
diff --git a/src/main-window.c b/src/main-window.c
index 4b333c2..0456b59 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -4389,7 +4389,7 @@ bw_find_real(BalsaWindow * window, BalsaIndex * bindex, gboolean again)
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 2);
/* Button box */
- box = gtk_hbutton_box_new();
+ box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_container_set_border_width(GTK_CONTAINER(box), 6);
button = gtk_button_new_from_stock(GTK_STOCK_APPLY);
g_signal_connect(G_OBJECT(button), "clicked",
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index a385142..956b08c 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -422,7 +422,7 @@ create_toolbar_page(BalsaToolbarModel * model, GtkUIManager * ui_manager)
page->toolbar);
/* Button box */
- button_box = gtk_hbutton_box_new();
+ button_box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start(GTK_BOX(toolbar_ctlbox), button_box, FALSE, FALSE, 0);
/* Standard button */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]