[gnome-devel-docs] removed some trailing whitespace.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] removed some trailing whitespace.
- Date: Fri, 1 Jun 2012 17:17:41 +0000 (UTC)
commit 10a7d4848cc1e649ab29e06de27a2b233954d7ae
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Fri Jun 1 13:17:25 2012 -0400
removed some trailing whitespace.
platform-demos/C/samples/button.c | 11 +++++------
platform-demos/C/samples/linkbutton.c | 5 +----
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/platform-demos/C/samples/button.c b/platform-demos/C/samples/button.c
index 663da54..17554bc 100644
--- a/platform-demos/C/samples/button.c
+++ b/platform-demos/C/samples/button.c
@@ -3,34 +3,33 @@
/*This is the callback function. It is a handler function which reacts to the signal.
In this case, it will cause the button label's string to reverse.*/
-static void
+static void
button_clicked (GtkButton *button,
gpointer user_data)
{
const char *old_label;
char *new_label;
-
+
old_label = gtk_button_get_label (button);
new_label = g_utf8_strreverse (old_label, -1);
-
+
gtk_button_set_label (button, new_label);
g_free (new_label);
}
-
static void
activate (GtkApplication *app,
gpointer user_data)
{
GtkWidget *window;
GtkWidget *button;
-
+
/*Create a window with a title and a default size*/
window = gtk_application_window_new (app);
gtk_window_set_title (GTK_WINDOW (window), "GNOME Button");
gtk_window_set_default_size (GTK_WINDOW (window), 250, 50);
-
+
/*create a button with a label, and add it to the window*/
button = gtk_button_new_with_label ("Click Me");
gtk_container_add (GTK_CONTAINER (window), button);
diff --git a/platform-demos/C/samples/linkbutton.c b/platform-demos/C/samples/linkbutton.c
index 8bc18d2..d157944 100644
--- a/platform-demos/C/samples/linkbutton.c
+++ b/platform-demos/C/samples/linkbutton.c
@@ -1,6 +1,5 @@
#include <gtk/gtk.h>
-
static void
activate (GtkApplication *app,
gpointer user_data)
@@ -12,7 +11,7 @@ activate (GtkApplication *app,
gtk_window_set_title (GTK_WINDOW (window), "GNOME LinkButton");
gtk_window_set_default_size (GTK_WINDOW (window), 250, 50);
-
+
linkbutton = gtk_link_button_new ("Link to GNOME live!");
gtk_link_button_set_uri (GTK_LINK_BUTTON(linkbutton), "http://live.gnome.org");
@@ -21,8 +20,6 @@ activate (GtkApplication *app,
gtk_widget_show_all (window);
}
-
-
int
main (int argc, char **argv)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]