[Goodies-commits] r6395 - in sion/trunk: . src

Enrico Troeger enrico at xfce.org
Fri Jan 2 17:45:48 CET 2009


Author: enrico
Date: 2009-01-02 16:45:47 +0000 (Fri, 02 Jan 2009)
New Revision: 6395

Modified:
   sion/trunk/ChangeLog
   sion/trunk/src/compat.c
   sion/trunk/src/compat.h
Log:
Add sion_toolbar_set_orientation().

Modified: sion/trunk/ChangeLog
===================================================================
--- sion/trunk/ChangeLog	2009-01-02 15:22:15 UTC (rev 6394)
+++ sion/trunk/ChangeLog	2009-01-02 16:45:47 UTC (rev 6395)
@@ -1,3 +1,9 @@
+2009-01-02  Enrico Tröger  <enrico(at)xfce(dot)org>
+
+ * src/compath.c, src/compat.h:
+   Add sion_toolbar_set_orientation().
+
+
 2008-12-30  Enrico Tröger  <enrico(at)xfce(dot)org>
 
  * src/backendgvfs.c, src/bookmarkdialog.c, src/bookmarkeditdialog.c,

Modified: sion/trunk/src/compat.c
===================================================================
--- sion/trunk/src/compat.c	2009-01-02 15:22:15 UTC (rev 6394)
+++ sion/trunk/src/compat.c	2009-01-02 16:45:47 UTC (rev 6395)
@@ -73,3 +73,13 @@
 #endif
 }
 
+
+void sion_toolbar_set_orientation(GtkToolbar *toolbar, GtkOrientation orientation)
+{
+#if GTK_CHECK_VERSION(2, 16, 0)
+	gtk_orientable_set_orientation(GTK_ORIENTABLE(toolbar), orientation);
+#else
+	gtk_toolbar_set_orientation(toolbar, orientation);
+#endif
+}
+

Modified: sion/trunk/src/compat.h
===================================================================
--- sion/trunk/src/compat.h	2009-01-02 15:22:15 UTC (rev 6394)
+++ sion/trunk/src/compat.h	2009-01-02 16:45:47 UTC (rev 6395)
@@ -29,5 +29,7 @@
 
 guint32 sion_widget_get_flags(GtkWidget *widget);
 
+void sion_toolbar_set_orientation(GtkToolbar *toolbar, GtkOrientation orientation);
+
 #endif /* __COMPAT_H__ */
 




More information about the Goodies-commits mailing list