elementaryart team mailing list archive
-
elementaryart team
-
Mailing list archive
-
Message #02150
[Merge] lp:~tristanc/granite/fix-1014387 into lp:granite
Tristan Cormier has proposed merging lp:~tristanc/granite/fix-1014387 into lp:granite.
Requested reviews:
elementary Pantheon team (elementary-pantheon)
For more details, see:
https://code.launchpad.net/~tristanc/granite/fix-1014387/+merge/110888
I changed H/VBox (deprecated) to Gtk.Box in the Granite Demo.
--
https://code.launchpad.net/~tristanc/granite/fix-1014387/+merge/110888
Your team elementaryart (old) is subscribed to branch lp:granite.
=== modified file 'demo/main.vala'
--- demo/main.vala 2012-06-03 16:42:41 +0000
+++ demo/main.vala 2012-06-18 19:22:26 +0000
@@ -99,7 +99,7 @@
mode_button.append(new Gtk.Label("Quite long"));
mode_button.append(new Gtk.Label("Very very long \n with a line break"));
- var vbox = new Gtk.VBox(false, 0);
+ var vbox = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
var toolbar = new Gtk.Toolbar();
toolbar.get_style_context().add_class("primary-toolbar");
var toolbutton = new Gtk.ToolItem();
@@ -134,7 +134,7 @@
notebook.append_page(vbox, new Gtk.Label("ModeButton"));
/* static notebook */
- var staticbox = new Gtk.VBox (false, 5);
+ var staticbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 5);
var staticnotebook = new StaticNotebook ();
var pageone = new Gtk.Label("Page 1");
@@ -152,8 +152,8 @@
notebook.append_page (button_about, new Gtk.Label ("About Dialog"));
button_about.clicked.connect(() => { show_about(win); } );
- var popover_buttons = new Gtk.VBox(false, 0);
- var hbox3 = new Gtk.HBox(false, 0);
+ var popover_buttons = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
+ var hbox3 = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
hbox3.halign = Gtk.Align.END;
var popover1 = new Gtk.Button.with_label("PopOver 1");
popover1.halign = Gtk.Align.END;
@@ -180,7 +180,7 @@
popover_buttons.pack_start(hbox3, false, false);
notebook.append_page (popover_buttons, new Gtk.Label ("PopOvers"));
- var calendar_button = new Gtk.HBox(false, 0);
+ var calendar_button = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
var date_button = new Granite.Widgets.DatePicker.with_format("%d-%m-%y");
var time_button = new Granite.Widgets.TimePicker ();
date_button.valign = date_button.halign = Gtk.Align.CENTER;
@@ -190,7 +190,7 @@
notebook.append_page (calendar_button, new Gtk.Label ("Calendar"));
/* Contractor */
- var contractor_tab = new Gtk.VBox (false, 0);
+ var contractor_tab = new Gtk.Box (Gtk.Orientation.VERTICAL, 0 );
notebook.append_page (contractor_tab, new Gtk.Label ("Contractor"));
var tb = new Gtk.Toolbar ();
Follow ups