[gnome-devel-docs] Fixed coordinates of attached widgets.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Fixed coordinates of attached widgets.
- Date: Fri, 8 Jun 2012 00:49:32 +0000 (UTC)
commit 2906d560cebb90d0705ce65d56f130b6a11a0a5e
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Thu Jun 7 20:48:49 2012 -0400
Fixed coordinates of attached widgets.
platform-demos/C/samples/grid.vala | 2 +-
platform-demos/C/samples/statusbar.vala | 4 ++--
platform-demos/C/samples/toolbar.vala | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/samples/grid.vala b/platform-demos/C/samples/grid.vala
index f19b06d..64aa255 100644
--- a/platform-demos/C/samples/grid.vala
+++ b/platform-demos/C/samples/grid.vala
@@ -13,7 +13,7 @@ public class MyWindow : Gtk.ApplicationWindow {
button.show ();
this.add(grid);
- grid.attach(button, 1, 1, 1, 1);
+ grid.attach(button, 0, 1, 1, 1);
grid.attach_next_to (progress_bar, button, Gtk.PositionType.BOTTOM, 1, 1);
grid.show ();
}
diff --git a/platform-demos/C/samples/statusbar.vala b/platform-demos/C/samples/statusbar.vala
index 8ee5071..83cceaf 100644
--- a/platform-demos/C/samples/statusbar.vala
+++ b/platform-demos/C/samples/statusbar.vala
@@ -15,14 +15,14 @@ public class MyWindow : Gtk.ApplicationWindow {
var grid = new Gtk.Grid ();
var label = new Gtk.Label ("Press any key or ");
- grid.attach (label, 1, 1, 1, 1);
+ grid.attach (label, 0, 0, 1, 1);
label.show ();
var button = new Gtk.Button.with_label ("click me.");
grid.attach_next_to (button, label, Gtk.PositionType.RIGHT, 1, 1);
button.show ();
- grid.attach (statusbar, 1, 2, 2, 1);
+ grid.attach (statusbar, 0, 1, 2, 1);
statusbar.show ();
grid.set_column_spacing (5);
diff --git a/platform-demos/C/samples/toolbar.vala b/platform-demos/C/samples/toolbar.vala
index 01e62e5..15b1180 100644
--- a/platform-demos/C/samples/toolbar.vala
+++ b/platform-demos/C/samples/toolbar.vala
@@ -20,7 +20,7 @@ class MyWindow : Gtk.ApplicationWindow {
create_toolbar ();
toolbar.set_hexpand (true);
- grid.attach (toolbar, 1, 1, 1, 1);
+ grid.attach (toolbar, 0, 0, 1, 1);
toolbar.show ();
/* create the "undo" window action action */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]