aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-31 00:32:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-31 00:33:28 +0800
commit0109aa3a92b484ebb85c6481e5a8e39819b1f011 (patch)
treee7837b0a50517fc160a7b4d6d47f5c78a5505523 /widgets/misc
parentf25d21294158625477c529a679fd2f27fffb562c (diff)
downloadgsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.gz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.bz2
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.lz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.xz
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.zst
gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.zip
More whitespace cleanup.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-buffer-tagger.c4
-rw-r--r--widgets/misc/e-calendar-item.c30
-rw-r--r--widgets/misc/e-canvas-background.c18
-rw-r--r--widgets/misc/e-canvas.c12
-rw-r--r--widgets/misc/e-dateedit.c14
-rw-r--r--widgets/misc/e-printable.c6
-rw-r--r--widgets/misc/ea-calendar-cell.c2
-rw-r--r--widgets/misc/ea-calendar-item.c4
8 files changed, 45 insertions, 45 deletions
diff --git a/widgets/misc/e-buffer-tagger.c b/widgets/misc/e-buffer-tagger.c
index feef06c21e..cc2444d607 100644
--- a/widgets/misc/e-buffer-tagger.c
+++ b/widgets/misc/e-buffer-tagger.c
@@ -480,8 +480,8 @@ textview_motion_notify_event (GtkTextView *textview, GdkEventMotion *event)
g_return_val_if_fail (GTK_IS_TEXT_VIEW (textview), FALSE);
gtk_text_view_window_to_buffer_coords (textview,
- GTK_TEXT_WINDOW_WIDGET,
- event->x, event->y, &x, &y);
+ GTK_TEXT_WINDOW_WIDGET,
+ event->x, event->y, &x, &y);
update_mouse_cursor (textview, x, y);
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index df5dba165e..c76a9fa62e 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -1218,12 +1218,12 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
start_weekday = (tmp_tm.tm_wday + 6) % 7;
if (month_x + max_x - clip_rect.x > 0) {
- cairo_save (cr);
+ cairo_save (cr);
clip_rect.width = month_x + max_x - clip_rect.x;
clip_rect.height = text_y + char_height - clip_rect.y;
- gdk_cairo_rectangle (cr, &clip_rect);
- cairo_clip (cr);
+ gdk_cairo_rectangle (cr, &clip_rect);
+ cairo_clip (cr);
/* This is a strftime() format. %B = Month name, %Y = Year. */
e_utf8_strftime (buffer, sizeof (buffer), _("%B %Y"), &tmp_tm);
@@ -1237,13 +1237,13 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
text_x = (calitem->month_width - text_width) / 2;
text_x = MAX (min_x, text_x);
- gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_NORMAL]);
- cairo_move_to (cr,
- month_x + text_x,
- text_y);
+ gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_NORMAL]);
+ cairo_move_to (cr,
+ month_x + text_x,
+ text_y);
pango_cairo_show_layout (cr, layout);
- cairo_restore (cr);
+ cairo_restore (cr);
}
/* Set the clip rectangle for the main month display. */
@@ -1262,8 +1262,8 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
cairo_save (cr);
- gdk_cairo_rectangle (cr, &clip_rect);
- cairo_clip (cr);
+ gdk_cairo_rectangle (cr, &clip_rect);
+ cairo_clip (cr);
/* Draw the day initials across the top of the month. */
min_cell_width = MAX (calitem->max_day_width, (calitem->max_digit_width * 2))
@@ -1298,14 +1298,14 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
pango_layout_set_font_description (layout, font_desc);
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
text_x += (7-1) * calitem->cell_width;
- gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]);
+ gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]);
for (day = 0; day < 7; day++) {
cairo_save (cr);
layout_set_day_text (calitem, layout, day_index);
- cairo_move_to (cr,
- text_x - calitem->day_widths[day_index],
- text_y);
- pango_cairo_show_layout (cr, layout);
+ cairo_move_to (cr,
+ text_x - calitem->day_widths[day_index],
+ text_y);
+ pango_cairo_show_layout (cr, layout);
text_x += (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
? -calitem->cell_width : calitem->cell_width;
day_index++;
diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c
index 59d72f6692..adf2cdc83c 100644
--- a/widgets/misc/e-canvas-background.c
+++ b/widgets/misc/e-canvas-background.c
@@ -106,7 +106,7 @@ ecb_dispose (GObject *object)
}
if (G_OBJECT_CLASS (ecb_parent_class)->dispose)
- G_OBJECT_CLASS (ecb_parent_class)->dispose (object);
+ G_OBJECT_CLASS (ecb_parent_class)->dispose (object);
}
static void
@@ -150,7 +150,7 @@ ecb_set_property (GObject *object,
color_changed = TRUE;
break;
- case PROP_FILL_COLOR_RGBA:
+ case PROP_FILL_COLOR_RGBA:
ecb->priv->rgba = g_value_get_uint (value);
color_changed = TRUE;
break;
@@ -171,7 +171,7 @@ ecb_get_property (GObject *object,
ecb = E_CANVAS_BACKGROUND (object);
switch (prop_id) {
- case PROP_FILL_COLOR_RGBA:
+ case PROP_FILL_COLOR_RGBA:
g_value_set_uint (value, ecb->priv->rgba);
break;
default:
@@ -197,12 +197,12 @@ ecb_draw (GnomeCanvasItem *item,
ECanvasBackground *ecb = E_CANVAS_BACKGROUND (item);
cairo_save (cr);
- cairo_set_source_rgba (cr,
- ((ecb->priv->rgba >> 24) & 0xff) / 255.0,
- ((ecb->priv->rgba >> 16) & 0xff) / 255.0,
- ((ecb->priv->rgba >> 8) & 0xff) / 255.0,
- ( ecb->priv->rgba & 0xff) / 255.0);
- cairo_paint (cr);
+ cairo_set_source_rgba (cr,
+ ((ecb->priv->rgba >> 24) & 0xff) / 255.0,
+ ((ecb->priv->rgba >> 16) & 0xff) / 255.0,
+ ((ecb->priv->rgba >> 8) & 0xff) / 255.0,
+ ( ecb->priv->rgba & 0xff) / 255.0);
+ cairo_paint (cr);
cairo_restore (cr);
}
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c
index cca6d92670..5bb51f6bfc 100644
--- a/widgets/misc/e-canvas.c
+++ b/widgets/misc/e-canvas.c
@@ -172,14 +172,14 @@ gnome_canvas_item_invoke_point (GnomeCanvasItem *item,
gint cx,
gint cy)
{
- cairo_matrix_t inverse;
+ cairo_matrix_t inverse;
/* Calculate x & y in item local coordinates */
- inverse = item->matrix;
- if (cairo_matrix_invert (&inverse) != CAIRO_STATUS_SUCCESS)
- return NULL;
+ inverse = item->matrix;
+ if (cairo_matrix_invert (&inverse) != CAIRO_STATUS_SUCCESS)
+ return NULL;
- cairo_matrix_transform_point (&inverse, &x, &y);
+ cairo_matrix_transform_point (&inverse, &x, &y);
if (GNOME_CANVAS_ITEM_GET_CLASS (item)->point)
return GNOME_CANVAS_ITEM_GET_CLASS (item)->point (item, x, y, cx, cy);
@@ -452,7 +452,7 @@ canvas_button_event (GtkWidget *widget,
canvas->current_item));
/* dispatch normally regardless of the event's window if an item has
- has a pointer grab in effect */
+ has a pointer grab in effect */
if (!canvas->grabbed_item && event->window != bin_window)
return retval;
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index d2c7dc200a..ae962081d6 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -641,7 +641,7 @@ create_children (EDateEdit *dedit)
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), vbox);
- gtk_widget_show (vbox);
+ gtk_widget_show (vbox);
priv->calendar = e_calendar_new ();
calendar = E_CALENDAR (priv->calendar);
@@ -655,23 +655,23 @@ create_children (EDateEdit *dedit)
G_CALLBACK (on_date_popup_date_selected), dedit);
gtk_box_pack_start (GTK_BOX (vbox), priv->calendar, FALSE, FALSE, 0);
- gtk_widget_show (priv->calendar);
+ gtk_widget_show (priv->calendar);
bbox = gtk_hbutton_box_new ();
gtk_container_set_border_width (GTK_CONTAINER (bbox), 4);
gtk_box_set_spacing (GTK_BOX (bbox), 2);
gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE, FALSE, 0);
- gtk_widget_show (bbox);
+ gtk_widget_show (bbox);
priv->now_button = gtk_button_new_with_mnemonic (_("No_w"));
gtk_container_add (GTK_CONTAINER (bbox), priv->now_button);
- gtk_widget_show (priv->now_button);
+ gtk_widget_show (priv->now_button);
g_signal_connect (priv->now_button, "clicked",
G_CALLBACK (on_date_popup_now_button_clicked), dedit);
priv->today_button = gtk_button_new_with_mnemonic (_("_Today"));
gtk_container_add (GTK_CONTAINER (bbox), priv->today_button);
- gtk_widget_show (priv->today_button);
+ gtk_widget_show (priv->today_button);
g_signal_connect (priv->today_button, "clicked",
G_CALLBACK (on_date_popup_today_button_clicked), dedit);
@@ -1803,8 +1803,8 @@ on_date_entry_focus_out (GtkEntry *entry,
GtkWidget *msg_dialog;
tmp_tm.tm_year = 0;
- tmp_tm.tm_mon = 0;
- tmp_tm.tm_mday = 0;
+ tmp_tm.tm_mon = 0;
+ tmp_tm.tm_mday = 0;
e_date_edit_check_date_changed (dedit);
diff --git a/widgets/misc/e-printable.c b/widgets/misc/e-printable.c
index 00bb57d13d..ba8be2669e 100644
--- a/widgets/misc/e-printable.c
+++ b/widgets/misc/e-printable.c
@@ -139,7 +139,7 @@ e_printable_print_page (EPrintable *e_printable,
gboolean
e_printable_data_left (EPrintable *e_printable)
{
- gboolean ret_val;
+ gboolean ret_val;
g_return_val_if_fail (e_printable != NULL, FALSE);
g_return_val_if_fail (E_IS_PRINTABLE (e_printable), FALSE);
@@ -168,7 +168,7 @@ e_printable_height (EPrintable *e_printable,
gdouble max_height,
gboolean quantized)
{
- gdouble ret_val;
+ gdouble ret_val;
g_return_val_if_fail (e_printable != NULL, -1);
g_return_val_if_fail (E_IS_PRINTABLE (e_printable), -1);
@@ -191,7 +191,7 @@ e_printable_will_fit (EPrintable *e_printable,
gdouble max_height,
gboolean quantized)
{
- gboolean ret_val;
+ gboolean ret_val;
g_return_val_if_fail (e_printable != NULL, FALSE);
g_return_val_if_fail (E_IS_PRINTABLE (e_printable), FALSE);
diff --git a/widgets/misc/ea-calendar-cell.c b/widgets/misc/ea-calendar-cell.c
index ecd7179e0e..2915a6cd04 100644
--- a/widgets/misc/ea-calendar-cell.c
+++ b/widgets/misc/ea-calendar-cell.c
@@ -201,7 +201,7 @@ ea_calendar_cell_new (GObject *obj)
#ifdef ACC_DEBUG
static void ea_calendar_cell_finalize (GObject *object)
{
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (parent_class)->finalize (object);
++n_ea_calendar_cell_destroyed;
g_print ("ACC_DEBUG: n_ea_calendar_cell_destroyed = %d\n",
diff --git a/widgets/misc/ea-calendar-item.c b/widgets/misc/ea-calendar-item.c
index 97528a5639..e9977bf01e 100644
--- a/widgets/misc/ea-calendar-item.c
+++ b/widgets/misc/ea-calendar-item.c
@@ -203,7 +203,7 @@ ea_calendar_item_class_init (EaCalendarItemClass *klass)
class->get_name = ea_calendar_item_get_name;
class->get_description = ea_calendar_item_get_description;
- class->ref_state_set = ea_calendar_item_ref_state_set;
+ class->ref_state_set = ea_calendar_item_ref_state_set;
class->get_n_children = ea_calendar_item_get_n_children;
class->ref_child = ea_calendar_item_ref_child;
@@ -310,7 +310,7 @@ ea_calendar_item_get_name (AtkObject *accessible)
name_str = g_strdup_printf (
_("Calendar: from %s to %s"),
buffer_start, buffer_end);
- }
+ }
#if 0
if (e_calendar_item_get_selection (calitem, &select_start, &select_end)) {