aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2004-07-03 06:05:59 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-03 06:05:59 +0800
commit099873bb3ced9f2189b87d12641a6e61de9ae5d8 (patch)
tree044ad0c8fbb7af4183b4afe320057218dab2a988 /lib/widgets
parentb597caf899ec8778d8302f6ccce3a01651bb1b25 (diff)
downloadgsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar.gz
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar.bz2
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar.lz
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar.xz
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.tar.zst
gsoc2013-epiphany-099873bb3ced9f2189b87d12641a6e61de9ae5d8.zip
Codestyle and whitespace cleanup
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-spinner.c82
-rw-r--r--lib/widgets/ephy-spinner.h37
2 files changed, 60 insertions, 59 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c
index 0bee4488f..8145e17ae 100644
--- a/lib/widgets/ephy-spinner.c
+++ b/lib/widgets/ephy-spinner.c
@@ -68,46 +68,29 @@ static GObjectClass *parent_class = NULL;
GType
ephy_spinner_get_type (void)
{
- static GType type = 0;
-
- if (type == 0)
- {
- static const GTypeInfo our_info =
- {
- sizeof (EphySpinnerClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) ephy_spinner_class_init,
- NULL,
- NULL, /* class_data */
- sizeof (EphySpinner),
- 0, /* n_preallocs */
- (GInstanceInitFunc) ephy_spinner_init
- };
-
- type = g_type_register_static (GTK_TYPE_EVENT_BOX,
- "EphySpinner",
- &our_info, 0);
- }
-
- return type;
-}
+ static GType type = 0;
-/*
- * ephy_spinner_new:
- *
- * Create a new #EphySpinner. The spinner is a widget
- * that gives the user feedback about network status with
- * an animated image.
- *
- * Return Value: the spinner #GtkWidget
- **/
-GtkWidget *
-ephy_spinner_new (void)
-{
- return GTK_WIDGET (g_object_new (EPHY_TYPE_SPINNER,
- "visible-window", FALSE,
- NULL));
+ if (type == 0)
+ {
+ static const GTypeInfo our_info =
+ {
+ sizeof (EphySpinnerClass),
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) ephy_spinner_class_init,
+ NULL,
+ NULL, /* class_data */
+ sizeof (EphySpinner),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) ephy_spinner_init
+ };
+
+ type = g_type_register_static (GTK_TYPE_EVENT_BOX,
+ "EphySpinner",
+ &our_info, 0);
+ }
+
+ return type;
}
static gboolean
@@ -459,7 +442,7 @@ ephy_spinner_load_images (EphySpinner *spinner)
/* Load the animation */
icon_info = gtk_icon_theme_lookup_icon (spinner->details->icon_theme,
- "gnome-spinner", -1, 0);
+ "gnome-spinner", -1, 0);
if (icon_info == NULL)
{
g_warning ("Throbber animation not found");
@@ -499,7 +482,7 @@ ephy_spinner_load_images (EphySpinner *spinner)
/* Load the rest icon */
icon_info = gtk_icon_theme_lookup_icon (spinner->details->icon_theme,
- "gnome-spinner-rest", -1, 0);
+ "gnome-spinner-rest", -1, 0);
if (icon_info == NULL)
{
g_warning ("Throbber rest icon not found");
@@ -595,3 +578,20 @@ ephy_spinner_class_init (EphySpinnerClass *class)
g_type_class_add_private (object_class, sizeof (EphySpinnerDetails));
}
+
+/*
+ * ephy_spinner_new:
+ *
+ * Create a new #EphySpinner. The spinner is a widget
+ * that gives the user feedback about network status with
+ * an animated image.
+ *
+ * Return Value: the spinner #GtkWidget
+ **/
+GtkWidget *
+ephy_spinner_new (void)
+{
+ return GTK_WIDGET (g_object_new (EPHY_TYPE_SPINNER,
+ "visible-window", FALSE,
+ NULL));
+}
diff --git a/lib/widgets/ephy-spinner.h b/lib/widgets/ephy-spinner.h
index 98e55dafd..faa0520f0 100644
--- a/lib/widgets/ephy-spinner.h
+++ b/lib/widgets/ephy-spinner.h
@@ -1,5 +1,4 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
-
/*
* Nautilus
*
@@ -34,38 +33,40 @@
G_BEGIN_DECLS
-#define EPHY_TYPE_SPINNER (ephy_spinner_get_type ())
-#define EPHY_SPINNER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_SPINNER, EphySpinner))
-#define EPHY_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_SPINNER, EphySpinnerClass))
-#define EPHY_IS_SPINNER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_SPINNER))
-#define EPHY_IS_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_SPINNER))
-#define EPHY_SPINNER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_SPINNER, EphySpinnerClass))
+#define EPHY_TYPE_SPINNER (ephy_spinner_get_type ())
+#define EPHY_SPINNER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_SPINNER, EphySpinner))
+#define EPHY_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_SPINNER, EphySpinnerClass))
+#define EPHY_IS_SPINNER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_SPINNER))
+#define EPHY_IS_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_SPINNER))
+#define EPHY_SPINNER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_SPINNER, EphySpinnerClass))
-typedef struct EphySpinner EphySpinner;
-typedef struct EphySpinnerClass EphySpinnerClass;
-typedef struct EphySpinnerDetails EphySpinnerDetails;
+typedef struct EphySpinner EphySpinner;
+typedef struct EphySpinnerClass EphySpinnerClass;
+typedef struct EphySpinnerDetails EphySpinnerDetails;
-struct EphySpinner {
+struct EphySpinner
+{
GtkEventBox parent;
/*< private >*/
EphySpinnerDetails *details;
};
-struct EphySpinnerClass {
+struct EphySpinnerClass
+{
GtkEventBoxClass parent_class;
};
-GType ephy_spinner_get_type (void);
+GType ephy_spinner_get_type (void);
-GtkWidget *ephy_spinner_new (void);
+GtkWidget *ephy_spinner_new (void);
-void ephy_spinner_start (EphySpinner *throbber);
+void ephy_spinner_start (EphySpinner *throbber);
-void ephy_spinner_stop (EphySpinner *throbber);
+void ephy_spinner_stop (EphySpinner *throbber);
-void ephy_spinner_set_size (EphySpinner *spinner,
- GtkIconSize size);
+void ephy_spinner_set_size (EphySpinner *spinner,
+ GtkIconSize size);
G_END_DECLS