[balsa/gtk3] Gtk{HV}Paned is deprecated
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Gtk{HV}Paned is deprecated
- Date: Fri, 14 Oct 2011 13:16:37 +0000 (UTC)
commit 582629810c8debc99fb934cbe9a78cfb92ccb210
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Oct 14 09:16:13 2011 -0400
Gtk{HV}Paned is deprecated
* src/main-window.c: deprecation cleanup.
ChangeLog | 6 ++++++
src/main-window.c | 20 ++++++++++++--------
2 files changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2537f32..2315c24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-10-14 Peter Bloomfield
+ Gtk{HV}Paned is deprecated.
+
+ * src/main-window.c: deprecation cleanup.
+
+2011-10-14 Peter Bloomfield
+
Gtk{HV}Separator is deprecated.
* src/filter-edit-dialog.c (filters_edit_dialog): deprecation
diff --git a/src/main-window.c b/src/main-window.c
index 0456b59..b287a1f 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -1301,8 +1301,8 @@ bw_set_panes(BalsaWindow * window)
switch (balsa_app.layout_type) {
case LAYOUT_WIDE_MSG:
- window->paned_master = gtk_vpaned_new();
- window->paned_slave = gtk_hpaned_new();
+ window->paned_master = gtk_paned_new(GTK_ORIENTATION_VERTICAL);
+ window->paned_slave = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
if (window->content)
gtk_container_remove(GTK_CONTAINER(window->vbox),
window->content);
@@ -1320,8 +1320,8 @@ bw_set_panes(BalsaWindow * window)
width_preference = BALSA_INDEX_WIDE;
break;
case LAYOUT_WIDE_SCREEN:
- window->paned_master = gtk_hpaned_new();
- window->paned_slave = gtk_hpaned_new();
+ window->paned_master = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
+ window->paned_slave = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
if (window->content)
gtk_container_remove(GTK_CONTAINER(window->vbox),
window->content);
@@ -1340,8 +1340,8 @@ bw_set_panes(BalsaWindow * window)
break;
case LAYOUT_DEFAULT:
default:
- window->paned_master = gtk_hpaned_new();
- window->paned_slave = gtk_vpaned_new();
+ window->paned_master = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
+ window->paned_slave = gtk_paned_new(GTK_ORIENTATION_VERTICAL);
if (window->content)
gtk_container_remove(GTK_CONTAINER(window->vbox),
window->content);
@@ -4879,8 +4879,12 @@ static void
bw_show_mbtree(BalsaWindow * bw)
{
GtkWidget *parent;
- parent = gtk_widget_get_ancestor(bw->mblist, GTK_TYPE_HPANED);
- g_assert(parent != NULL);
+
+ parent = gtk_widget_get_ancestor(bw->mblist, GTK_TYPE_PANED);
+ while (gtk_orientable_get_orientation(GTK_ORIENTABLE(parent)) !=
+ GTK_ORIENTATION_HORIZONTAL) {
+ parent = gtk_widget_get_ancestor(parent, GTK_TYPE_PANED);
+ }
if (balsa_app.show_mblist) {
gtk_widget_show(bw->mblist);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]