aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-08 10:13:03 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:23 +0800
commit7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f (patch)
tree7051840d082b6f478c86efe8c350c53754152eb0 /widgets/misc
parente216530dcdc494950afb6355723a6104ab1f25ea (diff)
downloadgsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar.gz
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar.bz2
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar.lz
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar.xz
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.tar.zst
gsoc2013-evolution-7e9fc6d2b61287deaac0fa17e4dc19164c9ad51f.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-calendar-item.c2
-rw-r--r--widgets/misc/e-dateedit.c2
-rw-r--r--widgets/misc/e-map.c22
3 files changed, 13 insertions, 13 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index a7a1a68d71..6afe62d381 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -1330,7 +1330,7 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]);
for (day = 0; day < 7; day++) {
layout_set_day_text (calitem, layout, day_index);
- cairo_move_to (cr,
+ cairo_move_to (cr,
text_x - calitem->day_widths[day_index],
text_y);
pango_cairo_show_layout (cr, layout);
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index 5045a1d53f..a1a385ca70 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -588,7 +588,7 @@ create_children (EDateEdit *dedit)
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (priv->time_combo), cell, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (priv->time_combo), cell, "text", 0, NULL);
}
-
+
#else
priv->time_combo = gtk_combo_box_entry_new_with_model (
GTK_TREE_MODEL (time_store), 0);
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index d88e1698dc..4c292bfc4a 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -120,7 +120,7 @@ static void e_map_get_current_location (EMap *map, double *longitude, double *la
static void e_map_world_to_render_surface (EMap *map, gdouble world_longitude, gdouble world_latitude,
gdouble *win_x, gdouble *win_y);
static void update_render_surface (EMap *map, gboolean render_overlays);
-static void set_scroll_area (EMap *view, int width, int height);
+static void set_scroll_area (EMap *view, gint width, gint height);
static void center_at (EMap *map, double longitude, double latitude);
static void scroll_to (EMap *view, gint x, gint y);
static gint load_map_background (EMap *view, gchar *name);
@@ -176,7 +176,7 @@ e_map_do_tween_cb (gpointer data)
priv->timer_current_ms = g_timer_elapsed (priv->timer, NULL) * 1000;
gtk_widget_queue_draw (GTK_WIDGET (view));
-
+
/* Can't use for loop here, because we need to advance
* the list before deleting.
*/
@@ -184,7 +184,7 @@ e_map_do_tween_cb (gpointer data)
while (walk)
{
EMapTween *tween = walk->data;
-
+
walk = walk->next;
if (tween->end_time <= priv->timer_current_ms)
@@ -215,7 +215,7 @@ e_map_tween_new (EMap *view, guint msecs, double longitude_offset, double latitu
{
EMapPrivate *priv = view->priv;
EMapTween *tween;
-
+
if (!priv->smooth_zoom)
return;
@@ -412,7 +412,7 @@ e_map_unrealize (GtkWidget *widget)
cairo_surface_destroy (priv->map_render_surface);
priv->map_render_surface = NULL;
-
+
if (GTK_WIDGET_CLASS (e_map_parent_class)->unrealize)
(*GTK_WIDGET_CLASS (e_map_parent_class)->unrealize) (widget);
}
@@ -557,7 +557,7 @@ e_map_tweens_compute_matrix (EMap *view, cairo_matrix_t *matrix)
cairo_matrix_init_translate (matrix,
allocation.width / 2.0,
allocation.height / 2.0);
-
+
e_map_world_to_render_surface (view,
longitude, latitude,
&x, &y);
@@ -576,7 +576,7 @@ e_map_expose (GtkWidget *widget, GdkEventExpose *event)
cairo_matrix_t matrix;
if (!gtk_widget_is_drawable (widget))
- return FALSE;
+ return FALSE;
view = E_MAP (widget);
priv = view->priv;
@@ -588,11 +588,11 @@ e_map_expose (GtkWidget *widget, GdkEventExpose *event)
e_map_tweens_compute_matrix (view, &matrix);
cairo_transform (cr, &matrix);
- cairo_set_source_surface (cr,
+ cairo_set_source_surface (cr,
priv->map_render_surface,
0, 0);
cairo_paint (cr);
-
+
cairo_destroy (cr);
return FALSE;
@@ -1268,7 +1268,7 @@ e_map_get_current_location (EMap *map, double *longitude, double *latitude)
e_map_window_to_world (map,
allocation.width / 2.0, allocation.height / 2.0,
- longitude, latitude);
+ longitude, latitude);
}
/* Callback used when an adjustment is changed */
@@ -1289,7 +1289,7 @@ adjustment_changed_cb (GtkAdjustment *adj, gpointer data)
}
static void
-set_scroll_area (EMap *view, int width, int height)
+set_scroll_area (EMap *view, gint width, gint height)
{
EMapPrivate *priv;
GtkAllocation allocation;