[balsa/gtk3] gtk_scrolled_window_add_with_viewport deprecated
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] gtk_scrolled_window_add_with_viewport deprecated
- Date: Thu, 11 Apr 2013 22:57:17 +0000 (UTC)
commit f51d962b5c2bc4bbface54202cbea7deddab81d8
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Apr 11 18:56:40 2013 -0400
gtk_scrolled_window_add_with_viewport deprecated
* src/toolbar-prefs.c (create_toolbar_page):
gtk_scrolled_window_add_with_viewport is deprecated.
ChangeLog | 5 +++++
src/toolbar-prefs.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 79bab08..593c23c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-04-11 Peter Bloomfield
+ * src/toolbar-prefs.c (create_toolbar_page):
+ gtk_scrolled_window_add_with_viewport is deprecated.
+
+2013-04-11 Peter Bloomfield
+
* libbalsa/misc.c (lb_create_size_group_func): GtkTable is
deprecated.
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index 95921a5..42e7d22 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -418,8 +418,12 @@ create_toolbar_page(BalsaToolbarModel * model, GtkUIManager * ui_manager)
gtk_box_pack_start(GTK_BOX(toolbar_ctlbox), toolbar_scroll,
TRUE, TRUE, 0);
+#if GTK_CHECK_VERSION(3, 8, 0)
+ gtk_container_add(GTK_CONTAINER(toolbar_scroll), page->toolbar);
+#else /* GTK_CHECK_VERSION(3, 8, 0) */
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(toolbar_scroll),
page->toolbar);
+#endif /* GTK_CHECK_VERSION(3, 8, 0) */
/* Button box */
button_box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]