[gnome-devel-docs] Vala samples: small orgranisational changes.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Vala samples: small orgranisational changes.
- Date: Sat, 21 Apr 2012 17:15:15 +0000 (UTC)
commit 673b6c139fa3b1a6dd305d0f88a65e548d68e5b8
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Sat Apr 21 13:14:43 2012 -0400
Vala samples: small orgranisational changes.
platform-demos/C/GtkApplication.vala.page | 6 +++---
...nWindow.page => GtkApplicationWindow.vala.page} | 4 ++--
platform-demos/C/media/GtkApplicationWindow.png | Bin 4690 -> 0 bytes
platform-demos/C/messagedialog.vala.page | 6 +++++-
platform-demos/C/samples/GtkApplicationWindow.vala | 2 +-
platform-demos/C/samples/messagedialog.vala | 6 +++++-
platform-demos/C/window.vala.page | 14 +++++++++++---
platform-demos/Makefile.am | 1 -
8 files changed, 27 insertions(+), 12 deletions(-)
---
diff --git a/platform-demos/C/GtkApplication.vala.page b/platform-demos/C/GtkApplication.vala.page
index 1ee723a..b3f83e2 100644
--- a/platform-demos/C/GtkApplication.vala.page
+++ b/platform-demos/C/GtkApplication.vala.page
@@ -2,7 +2,7 @@
type="guide" style="task"
id="GtkApplication.vala">
<info>
- <link type="guide" xref="beginner.vala#windows"/>
+ <link type="guide" xref="beginner.vala#menu-combo-toolbar"/>
<revision version="0.1" date="2012-04-07" status="stub"/>
<credit type="author copyright">
@@ -16,10 +16,10 @@
<email>tiffany antopolski gmail com</email>
</credit>
- <desc>A Gtk.ApplicationWindow</desc>
+ <desc>A Gtk.Application with a GMenu</desc>
</info>
- <title>ApplicationWindow</title>
+ <title>Application with GMenu</title>
<table>
<tr>
<td>
diff --git a/platform-demos/C/GtkApplicationWindow.page b/platform-demos/C/GtkApplicationWindow.vala.page
similarity index 91%
rename from platform-demos/C/GtkApplicationWindow.page
rename to platform-demos/C/GtkApplicationWindow.vala.page
index 508cc17..f211788 100644
--- a/platform-demos/C/GtkApplicationWindow.page
+++ b/platform-demos/C/GtkApplicationWindow.vala.page
@@ -15,13 +15,13 @@
</info>
<title>Application Window</title>
- <media type="image" mime="image/png" src="media/GtkApplicationWindow.png"/>
+ <media type="image" mime="image/png" src="media/window.png"/>
<p>The simplest GtkApplication Window</p>
<code mime="text/x-vala" style="numbered"><![CDATA[
public class MyWindow : Gtk.ApplicationWindow {
internal MyWindow (MyApplication app) {
- Object (application: app, title: "My Application");
+ Object (application: app, title: "Welcome to GNOME");
}
}
diff --git a/platform-demos/C/messagedialog.vala.page b/platform-demos/C/messagedialog.vala.page
index 6002bd6..4683f73 100644
--- a/platform-demos/C/messagedialog.vala.page
+++ b/platform-demos/C/messagedialog.vala.page
@@ -39,7 +39,11 @@ int main (string[] args) {
Gtk.init (ref args);
- var messagedialog = new Gtk.MessageDialog (null, Gtk.DialogFlags.MODAL, Gtk.MessageType.INFO, Gtk.ButtonsType.OK_CANCEL, "This action will cause the universe to stop existing.");
+ var messagedialog = new Gtk.MessageDialog (null,
+ Gtk.DialogFlags.MODAL,
+ Gtk.MessageType.INFO,
+ Gtk.ButtonsType.OK_CANCEL,
+ "This action will cause the universe to stop existing.");
messagedialog.response.connect (dialog_response);
diff --git a/platform-demos/C/samples/GtkApplicationWindow.vala b/platform-demos/C/samples/GtkApplicationWindow.vala
index be9637a..47ea2d3 100644
--- a/platform-demos/C/samples/GtkApplicationWindow.vala
+++ b/platform-demos/C/samples/GtkApplicationWindow.vala
@@ -1,6 +1,6 @@
public class MyWindow : Gtk.ApplicationWindow {
internal MyWindow (MyApplication app) {
- Object (application: app, title: "My Application");
+ Object (application: app, title: "Welcome to GNOME");
}
}
diff --git a/platform-demos/C/samples/messagedialog.vala b/platform-demos/C/samples/messagedialog.vala
index 564de8b..3f8d15d 100644
--- a/platform-demos/C/samples/messagedialog.vala
+++ b/platform-demos/C/samples/messagedialog.vala
@@ -18,7 +18,11 @@ int main (string[] args) {
Gtk.init (ref args);
- var messagedialog = new Gtk.MessageDialog (null, Gtk.DialogFlags.MODAL, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK_CANCEL, "This action will cause the universe to stop existing.");
+ var messagedialog = new Gtk.MessageDialog (null,
+ Gtk.DialogFlags.MODAL,
+ Gtk.MessageType.WARNING,
+ Gtk.ButtonsType.OK_CANCEL,
+ "This action will cause the universe to stop existing.");
messagedialog.response.connect (dialog_response);
diff --git a/platform-demos/C/window.vala.page b/platform-demos/C/window.vala.page
index d137951..cd5ff2f 100644
--- a/platform-demos/C/window.vala.page
+++ b/platform-demos/C/window.vala.page
@@ -15,9 +15,17 @@
</info>
<title>Window</title>
- <media type="image" mime="image/png" src="media/window.png"/>
- <p>A toplevel window with destroy signal hooked up.</p>
-
+<table>
+ <tr>
+ <td>
+ <media type="image" mime="image/png" src="media/window.png"/>
+ <p>A toplevel window with destroy signal hooked up.</p>
+ </td>
+ <td>
+ <p>This example should no longer be used. Use <link href="GtkApplicationWindow.vala.page">Application Window</link> instead.</p>
+ </td>
+ </tr>
+</table>
<code mime="text/x-vala" style="numbered"><![CDATA[
int main (string[] args) {
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index 416d2bd..93a65db 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -32,7 +32,6 @@ DOC_FIGURES = \
media/opensuse.png \
media/grid.png \
media/GtkApplication.png \
- media/GtkApplicationWindow.png \
media/guitar-tuner.png \
media/guitar-tuner-glade.png \
media/guitar-tuner-pipeline.png \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]