aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-spinner.c
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/ephy-spinner.c
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/ephy-spinner.c')
-rw-r--r--lib/widgets/ephy-spinner.c82
1 files changed, 41 insertions, 41 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));
+}