Updating branch refs/heads/master
         to 48ba69c8535508dd8f5a70071b96bd47c671b6b4 (commit)
       from efaf9bad8ebd9d85548d2b1e02628028a21d367c (commit)

commit 48ba69c8535508dd8f5a70071b96bd47c671b6b4
Author: Mike Massonnet <[email protected]>
Date:   Mon Mar 4 10:30:01 2013 +0100

    gtk3: Replace Gtk.H/VBox with Gtk.Box

 lib/window.vala |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/lib/window.vala b/lib/window.vala
index 5f69f91..a930327 100644
--- a/lib/window.vala
+++ b/lib/window.vala
@@ -40,7 +40,11 @@ namespace Xnp {
                private Xnp.TitleBarButton left_arrow_button;
                private Xnp.TitleBarButton right_arrow_button;
                private Xnp.TitleBarButton close_button;
+#if ENABLE_GTK3
+               private Gtk.Box content_box;
+#else
                private Gtk.VBox content_box;
+#endif
                private Gtk.Notebook notebook;
 
                private Gtk.UIManager ui;
@@ -215,13 +219,22 @@ namespace Xnp {
                        frame.modify_style (style);
                        frame.show ();
                        add (frame);
+#if ENABLE_GTK3
+                       var vbox_frame = new Gtk.Box (Gtk.Orientation.VERTICAL, 
0);
+#else
                        var vbox_frame = new Gtk.VBox (false, 0);
+#endif
+
                        vbox_frame.spacing = 1;
                        vbox_frame.show ();
                        frame.add (vbox_frame);
 
                        /* Build title bar */
+#if ENABLE_GTK3
+                       var title_box = new Gtk.Box 
(Gtk.Orientation.HORIZONTAL, 0);
+#else
                        var title_box = new Gtk.HBox (false, 0);
+#endif
                        var menu_evbox = new Gtk.EventBox ();
                        menu_evbox.tooltip_text = _("Menu");
                        menu_evbox.set_visible_window (false);
@@ -271,7 +284,11 @@ namespace Xnp {
                        vbox_frame.pack_start (title_box, false, false, 0);
 
                        /* Build content box */
+#if ENABLE_GTK3
+                       this.content_box = new Gtk.Box 
(Gtk.Orientation.VERTICAL, 0);
+#else
                        this.content_box = new Gtk.VBox (false, 0);
+#endif
                        this.content_box.show ();
                        vbox_frame.pack_start (this.content_box, true, true, 0);
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to