[pan2] fixes : No gtk_notebook_set_homogeneous_tabs function in gtk3
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] fixes : No gtk_notebook_set_homogeneous_tabs function in gtk3
- Date: Sun, 22 Jan 2012 18:09:53 +0000 (UTC)
commit bfe2f3dd8bcbade2399611eb6d34582d05c7736f
Author: Heinrich MÃller <henmull src gnome org>
Date: Sun Jan 22 19:08:40 2012 +0100
fixes : No gtk_notebook_set_homogeneous_tabs function in gtk3
pan/gui/prefs-ui.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/prefs-ui.cc b/pan/gui/prefs-ui.cc
index 8289b13..f816fee 100644
--- a/pan/gui/prefs-ui.cc
+++ b/pan/gui/prefs-ui.cc
@@ -726,7 +726,11 @@ PrefsDialog :: PrefsDialog (Prefs& prefs, GtkWindow* parent):
GtkWidget * notebook = gtk_notebook_new ();
+#if !GTK_CHECK_VERSION(2,24,0)
gtk_notebook_set_homogeneous_tabs (GTK_NOTEBOOK(notebook), true);
+#else
+ g_object_set (notebook, "homogeneous", true, NULL);
+#endif
gtk_notebook_set_scrollable (GTK_NOTEBOOK(notebook), true);
// Behavior
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]