aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-29 05:16:33 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-29 05:16:33 +0800
commit7005a8dcdc6f2fb87826cfb7e7d575130476d65d (patch)
treee500a455ba03ff1c63bce7f8d970704b22a61fd7 /plugins
parent46e5f2d7f950b00e6a523c29fbba9ba43632a80d (diff)
downloadgsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar.gz
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar.bz2
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar.lz
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar.xz
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.tar.zst
gsoc2013-evolution-7005a8dcdc6f2fb87826cfb7e7d575130476d65d.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/contacts-map/contacts-map.c13
-rw-r--r--plugins/contacts-map/geo-utils.c4
-rw-r--r--plugins/contacts-map/geo-utils.h2
-rw-r--r--plugins/tnef-attachments/tnef-plugin.c2
4 files changed, 9 insertions, 12 deletions
diff --git a/plugins/contacts-map/contacts-map.c b/plugins/contacts-map/contacts-map.c
index 8961233587..afde8e2273 100644
--- a/plugins/contacts-map/contacts-map.c
+++ b/plugins/contacts-map/contacts-map.c
@@ -30,7 +30,6 @@
#include <shell/e-shell-view.h>
#include <shell/e-shell-window.h>
-
/* Plugin entry points */
gboolean addressbook_map_init (GtkUIManager *ui_manager, EShellView *shell_view);
@@ -39,7 +38,7 @@ void show_map_general (ESourceSelector *selector);
/* Implementations */
-gboolean
+gboolean
addressbook_map_init (GtkUIManager *ui_manager, EShellView *shell_view)
{
EShell *shell;
@@ -77,7 +76,6 @@ addressbook_map_init (GtkUIManager *ui_manager, EShellView *shell_view)
return TRUE;
}
-
void
action_show_ebook_map (GtkAction *action, EShellView *shell_view)
{
@@ -93,7 +91,6 @@ action_show_ebook_map (GtkAction *action, EShellView *shell_view)
g_object_unref (selector);
}
-
void
show_map_general (ESourceSelector *selector)
{
@@ -110,7 +107,7 @@ show_map_general (ESourceSelector *selector)
gdouble lat = 0;
gdouble lng = 0;
- GtkWidget *map_widget;
+ GtkWidget *map_widget;
ChamplainView *view;
ChamplainLayer *layer;
@@ -123,11 +120,11 @@ show_map_general (ESourceSelector *selector)
uri = e_source_get_uri (primary_source);
book = e_book_new_from_uri (uri, NULL);
- if (!book || !e_book_open (book, TRUE, NULL))
+ if (!book || !e_book_open (book, TRUE, NULL))
{
g_warning ("Couldn't load addressbook %s", uri);
return;
- }
+ }
/* Get all the contacts with an address */
query = e_book_query_field_exists (E_CONTACT_ADDRESS);
@@ -154,7 +151,7 @@ show_map_general (ESourceSelector *selector)
fields = geoclue_geocode_address_to_position (geocoder, details,
&lat, &lng, NULL, &accuracy, &error);
- if (!error &&
+ if (!error &&
(fields & GEOCLUE_POSITION_FIELDS_LATITUDE) != 0 &&
(fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) != 0) {
/* Add the marker to the map */
diff --git a/plugins/contacts-map/geo-utils.c b/plugins/contacts-map/geo-utils.c
index 3f7473cab4..b44b926ef3 100644
--- a/plugins/contacts-map/geo-utils.c
+++ b/plugins/contacts-map/geo-utils.c
@@ -33,13 +33,13 @@ add_marker (ChamplainLayer *layer, gdouble lat, gdouble lng, EContact *contact)
champlain_layer_add_marker (layer, CHAMPLAIN_BASE_MARKER(marker));
}
-GeoclueGeocode*
+GeoclueGeocode*
get_geocoder (void)
{
GeoclueGeocode *geocoder = NULL;
/* Create new GeoclueGeocode */
- geocoder = geoclue_geocode_new ("org.freedesktop.Geoclue.Providers.Yahoo",
+ geocoder = geoclue_geocode_new ("org.freedesktop.Geoclue.Providers.Yahoo",
"/org/freedesktop/Geoclue/Providers/Yahoo");
return geocoder;
diff --git a/plugins/contacts-map/geo-utils.h b/plugins/contacts-map/geo-utils.h
index 65248f4893..4560ed0b1a 100644
--- a/plugins/contacts-map/geo-utils.h
+++ b/plugins/contacts-map/geo-utils.h
@@ -9,7 +9,7 @@
#include <champlain-gtk/champlain-gtk.h>
#include <clutter-gtk/clutter-gtk.h>
-void
+void
get_min_max (gdouble *min_lat, gdouble *max_lat,
gdouble *min_lng, gdouble *max_lng,
gdouble lat, gdouble lng);
diff --git a/plugins/tnef-attachments/tnef-plugin.c b/plugins/tnef-attachments/tnef-plugin.c
index 86a1c756de..3ef047d526 100644
--- a/plugins/tnef-attachments/tnef-plugin.c
+++ b/plugins/tnef-attachments/tnef-plugin.c
@@ -330,7 +330,7 @@ void processTnef(TNEFStruct *tnef, const gchar *tmpdir) {
}
}
if ((RealAttachment == 1) || (saveintermediate == 1)) {
- char tmpname[20];
+ gchar tmpname[20];
/* Ok, it's not an embedded stream, so now we */
/* process it. */
if ((filename = MAPIFindProperty(&(p->MAPI),