[gnome-devel-docs] style fixes: trailing whitespace and tabs vs. spaces.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] style fixes: trailing whitespace and tabs vs. spaces.
- Date: Tue, 29 May 2012 03:49:24 +0000 (UTC)
commit 54e695306b61ce65d120b6e2f4268e4acb84c00b
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Mon May 28 23:48:34 2012 -0400
style fixes: trailing whitespace and tabs vs. spaces.
platform-demos/C/samples/aboutdialog.vala | 16 +++---
platform-demos/C/samples/button.vala | 7 +-
platform-demos/C/samples/checkbutton.vala | 4 +-
platform-demos/C/samples/combobox.vala | 12 ++--
platform-demos/C/samples/dialog.vala | 2 +-
platform-demos/C/samples/image.c | 2 +-
platform-demos/C/samples/radiobutton.vala | 2 +-
platform-demos/C/samples/statusbar.vala | 8 +-
platform-demos/C/samples/switch.vala | 2 +-
.../C/samples/treeview_simple_liststore.vala | 66 +++++++++----------
10 files changed, 57 insertions(+), 64 deletions(-)
---
diff --git a/platform-demos/C/samples/aboutdialog.vala b/platform-demos/C/samples/aboutdialog.vala
index d44f73b..40f282a 100644
--- a/platform-demos/C/samples/aboutdialog.vala
+++ b/platform-demos/C/samples/aboutdialog.vala
@@ -11,7 +11,7 @@ public class Window : Gtk.ApplicationWindow {
this.add_action (about_action);
this.show_all ();
}
-
+
/* This is the callback function connected to the 'activate' signal
* of the SimpleAction about_action.
*/
@@ -20,13 +20,13 @@ public class Window : Gtk.ApplicationWindow {
string[] documenters = { "GNOME Documentation Team", null };
Gtk.show_about_dialog (this,
- "program-name", ("GtkApplication Example"),
- "copyright", ("Copyright \xc2\xa9 2012 GNOME Documentation Team"),
- "authors", authors,
- "documenters", documenters,
- "website", "http://developer.gnome.org",
- "website-label", ("GNOME Developer Website"),
- null);
+ "program-name", ("GtkApplication Example"),
+ "copyright", ("Copyright \xc2\xa9 2012 GNOME Documentation Team"),
+ "authors", authors,
+ "documenters", documenters,
+ "website", "http://developer.gnome.org",
+ "website-label", ("GNOME Developer Website"),
+ null);
}
}
diff --git a/platform-demos/C/samples/button.vala b/platform-demos/C/samples/button.vala
index 480966d..77d20a8 100644
--- a/platform-demos/C/samples/button.vala
+++ b/platform-demos/C/samples/button.vala
@@ -1,6 +1,6 @@
/* A window in the application */
public class MyWindow : Gtk.ApplicationWindow {
-
+
/* The constructor of the window */
internal MyWindow (MyApplication app) {
Object (application: app, title: "GNOME Button");
@@ -12,15 +12,14 @@ public class MyWindow : Gtk.ApplicationWindow {
this.window_position = Gtk.WindowPosition.CENTER;
this.set_default_size (250,50);
this.add (button);
- }
+ }
/* The callback function connected to the
* 'clicked' signal of the button.
- */
+ */
void reverse_label (Gtk.Button button) {
button.label = button.label.reverse ();
}
-
}
/* This is the application. */
diff --git a/platform-demos/C/samples/checkbutton.vala b/platform-demos/C/samples/checkbutton.vala
index 0c760b8..98000de 100644
--- a/platform-demos/C/samples/checkbutton.vala
+++ b/platform-demos/C/samples/checkbutton.vala
@@ -1,13 +1,13 @@
/* A window in the application */
class MyWindow : Gtk.ApplicationWindow {
-
+
/* The constructor */
internal MyWindow (MyApplication app) {
Object (application: app, title: "CheckButton Example");
this.set_default_size (300, 100);
this.border_width = 10;
-
+
var checkbutton = new Gtk.CheckButton.with_label ("Show Title");
/* Connect the checkbutton to the
diff --git a/platform-demos/C/samples/combobox.vala b/platform-demos/C/samples/combobox.vala
index fde2246..6888850 100644
--- a/platform-demos/C/samples/combobox.vala
+++ b/platform-demos/C/samples/combobox.vala
@@ -1,7 +1,7 @@
/* A window in the application */
class MyWindow : Gtk.ApplicationWindow {
- /* An instance array of linux distributions belonging to this window. */
+ /* An instance array of linux distributions belonging to this window. */
string[] distros = {"Select distribution", "Fedora", "Mint", "Suse"};
/* This enum makes the code more readable when we refer to
@@ -11,7 +11,7 @@ class MyWindow : Gtk.ApplicationWindow {
DISTRO
}
- /* Constructor */
+ /* Constructor */
internal MyWindow (MyApplication app) {
Object (application: app, title: "Welcome to GNOME");
@@ -39,8 +39,8 @@ class MyWindow : Gtk.ApplicationWindow {
* to the signal handler (aka. callback function.
*/
combobox.changed.connect (this.item_changed);
-
- /* Add the combobox to this window */
+
+ /* Add the combobox to this window */
this.add (combobox);
combobox.show ();
}
@@ -65,14 +65,12 @@ class MyApplication : Gtk.Application {
* which is inherited by Gtk.Application.
*/
protected override void activate () {
-
+
/* Create the window of this application
* and show it.
*/
new MyWindow (this).show ();
}
-
-
}
/* main creates and runs the application */
diff --git a/platform-demos/C/samples/dialog.vala b/platform-demos/C/samples/dialog.vala
index 7ee360b..2d6e2c1 100644
--- a/platform-demos/C/samples/dialog.vala
+++ b/platform-demos/C/samples/dialog.vala
@@ -4,7 +4,7 @@ public class MyWindow : Gtk.ApplicationWindow {
/* Constructor */
internal MyWindow (MyApplication app) {
Object (application: app, title: "GNOME Button");
-
+
this.window_position = Gtk.WindowPosition.CENTER;
this.set_default_size (250,50);
diff --git a/platform-demos/C/samples/image.c b/platform-demos/C/samples/image.c
index e00f9ec..4b4e212 100644
--- a/platform-demos/C/samples/image.c
+++ b/platform-demos/C/samples/image.c
@@ -13,7 +13,7 @@ activate (GtkApplication *app,
gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));
gtk_window_set_title (GTK_WINDOW (window), "Welcome to GNOME");
gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);//may have to change size
-
+
image = gtk_image_new_from_file ("gnome-image.png");
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (image));
diff --git a/platform-demos/C/samples/radiobutton.vala b/platform-demos/C/samples/radiobutton.vala
index 22f535d..25ed9cc 100644
--- a/platform-demos/C/samples/radiobutton.vala
+++ b/platform-demos/C/samples/radiobutton.vala
@@ -25,7 +25,7 @@ public class MyWindow : Gtk.ApplicationWindow {
//Add the button to the window.
this.add (grid);
-
+
//Connect the signal handlers (aka. callback functions) to the buttons.
button1.toggled.connect (button_toggled_cb);
button2.toggled.connect (button_toggled_cb);
diff --git a/platform-demos/C/samples/statusbar.vala b/platform-demos/C/samples/statusbar.vala
index 6858a81..4ae729d 100644
--- a/platform-demos/C/samples/statusbar.vala
+++ b/platform-demos/C/samples/statusbar.vala
@@ -5,13 +5,13 @@ public class MyWindow : Gtk.ApplicationWindow {
internal MyWindow (MyApplication app) {
Object (application: app, title: "Statusbar Example");
-
+
statusbar = new Gtk.Statusbar ();
- context_id = statusbar.get_context_id ("example");
+ context_id = statusbar.get_context_id ("example");
statusbar.push (context_id, "Waiting for you to do something...");
- //set the default size of the window
+ //set the default size of the window
this.set_default_size (200, 100);
var grid = new Gtk.Grid ();
@@ -23,7 +23,7 @@ public class MyWindow : Gtk.ApplicationWindow {
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);
statusbar.show ();
diff --git a/platform-demos/C/samples/switch.vala b/platform-demos/C/samples/switch.vala
index 2bca45e..6df42b7 100644
--- a/platform-demos/C/samples/switch.vala
+++ b/platform-demos/C/samples/switch.vala
@@ -7,7 +7,7 @@ class MyWindow : Gtk.ApplicationWindow {
this.set_default_size (300, 100);
this.border_width = 10;
-
+
var label = new Gtk.Label ("Title");
switcher = new Gtk.Switch ();
diff --git a/platform-demos/C/samples/treeview_simple_liststore.vala b/platform-demos/C/samples/treeview_simple_liststore.vala
index 9d1870b..6da9e4a 100644
--- a/platform-demos/C/samples/treeview_simple_liststore.vala
+++ b/platform-demos/C/samples/treeview_simple_liststore.vala
@@ -53,45 +53,41 @@ class TreeViewSimpleListStore : Gtk.ApplicationWindow {
}
void setup_treeview (Gtk.TreeView view) {
- var listmodel = new Gtk.ListStore (3,
- typeof (string),
- typeof (string),
- typeof (string));
- view.set_model (listmodel);
-
- var cell = new Gtk.CellRendererText ();
-
- /* 'weight' refers to font boldness.
- * 400 is normal.
- * 700 is bold.
- */
- cell.set ("weight_set", true);
- cell.set ("weight", 700);
-
- /*columns*/
- view.insert_column_with_attributes (-1,
- "First Name",
- cell, "text",
- Column.FIRSTNAME);
-
- view.insert_column_with_attributes (-1,
- "Last Name",
- new Gtk.CellRendererText (),
- "text", Column.LASTNAME);
-
- view.insert_column_with_attributes (-1,
- "Phone Number",
- new Gtk.CellRendererText (),
- "text", Column.PHONE);
+ var listmodel = new Gtk.ListStore (3, typeof (string),
+ typeof (string),
+ typeof (string));
+ view.set_model (listmodel);
+
+ var cell = new Gtk.CellRendererText ();
+
+ /* 'weight' refers to font boldness.
+ * 400 is normal.
+ * 700 is bold.
+ */
+ cell.set ("weight_set", true);
+ cell.set ("weight", 700);
+
+ /*columns*/
+ view.insert_column_with_attributes (-1, "First Name",
+ cell, "text",
+ Column.FIRSTNAME);
+
+ view.insert_column_with_attributes (-1, "Last Name",
+ new Gtk.CellRendererText (),
+ "text", Column.LASTNAME);
+
+ view.insert_column_with_attributes (-1, "Phone Number",
+ new Gtk.CellRendererText (),
+ "text", Column.PHONE);
/* Insert the phonebook into the ListStore */
- Gtk.TreeIter iter;
- for (int i = 0; i < phonebook.length; i++) {
+ Gtk.TreeIter iter;
+ for (int i = 0; i < phonebook.length; i++) {
listmodel.append (out iter);
listmodel.set (iter, Column.FIRSTNAME,
- phonebook[i].firstname,
- Column.LASTNAME, phonebook[i].lastname,
- Column.PHONE, phonebook[i].phone);
+ phonebook[i].firstname,
+ Column.LASTNAME, phonebook[i].lastname,
+ Column.PHONE, phonebook[i].phone);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]