[gnome-devel-docs] Samples: small fixes.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Samples: small fixes.
- Date: Sat, 5 May 2012 05:06:40 +0000 (UTC)
commit 37c290d7e93ee69ebdb38c83e447924bdc4dd1dc
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Sat May 5 01:05:50 2012 -0400
Samples: small fixes.
platform-demos/C/samples/grid.py | 4 ++--
platform-demos/C/samples/image.vala | 4 +---
platform-demos/Makefile.am | 1 +
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/platform-demos/C/samples/grid.py b/platform-demos/C/samples/grid.py
index aaf81ba..d5e5538 100644
--- a/platform-demos/C/samples/grid.py
+++ b/platform-demos/C/samples/grid.py
@@ -23,8 +23,8 @@ class GridApplication(Gtk.Application):
Gtk.Application.__init__(self, application_id="org.gtk.example.grid")
def do_activate(self):
- win = GridWindow(self)
- win.show_all()
+ win = GridWindow(self)
+ win.show_all()
app = GridApplication()
exit_status = app.run(sys.argv)
diff --git a/platform-demos/C/samples/image.vala b/platform-demos/C/samples/image.vala
index a9fbd74..a714171 100644
--- a/platform-demos/C/samples/image.vala
+++ b/platform-demos/C/samples/image.vala
@@ -6,14 +6,12 @@ public class MyWindow : Gtk.ApplicationWindow {
image.set_from_file ("gnome-image.png");
this.add (image);
this.set_default_size (300, 300);
-
- this.show_all ();
}
}
public class MyApplication : Gtk.Application {
protected override void activate () {
- new MyWindow (this).show ();
+ new MyWindow (this).show_all ();
}
internal MyApplication () {
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index 1b300c7..d4ea66d 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -94,6 +94,7 @@ DOC_PAGES = \
getting-ready.page \
grid_with_entry.js.page \
grid.js.page \
+ grid.py.page \
grid.vala.page \
gmenu.c.page \
gmenu.js.page \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]