aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-16 23:25:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-09-04 19:34:32 +0800
commitfcbbdfbd18e15b4ee8322a0217cf03a689a5e033 (patch)
treee16cd2a2279558c6a2bfb6ca39fcbaac4c85ba59 /addressbook/printing
parentf78417c48861759d7b0c4535ecd3febe4638a7d3 (diff)
downloadgsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.gz
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.zst
gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'addressbook/printing')
-rw-r--r--addressbook/printing/e-contact-print.c17
-rw-r--r--addressbook/printing/test-print.c3
2 files changed, 12 insertions, 8 deletions
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 7719533fdd..0aac4a7530 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -104,7 +104,9 @@ get_font_width (GtkPrintContext *context,
static void
e_contact_output (GtkPrintContext *context,
PangoFontDescription *font,
- gdouble x, gdouble y, gdouble width,
+ gdouble x,
+ gdouble y,
+ gdouble width,
const gchar *text)
{
PangoLayout *layout;
@@ -184,7 +186,7 @@ e_contact_print_letter_heading (EContactPrintContext *ctxt,
if (ctxt->page_nr == -1 || ctxt->pages != ctxt->page_nr) {
/* only calculating number of pages
- or on page we do not want to print */
+ * or on page we do not want to print */
ctxt->y += pango_units_to_double (height);
return;
@@ -319,7 +321,7 @@ e_contact_print_contact (EContact *contact,
{
const gchar *value;
gchar *text;
- gint wrapped_lines=0;
+ gint wrapped_lines = 0;
if (ctxt->y > page_height)
e_contact_start_new_column (ctxt);
@@ -341,7 +343,7 @@ e_contact_print_contact (EContact *contact,
wrapped_lines =
(get_font_width (ctxt->context,
ctxt->style->body_font, text) /
- (ctxt->column_width+4)) + 1;
+ (ctxt->column_width + 4)) + 1;
ctxt->y =
ctxt->y + ((wrapped_lines + 1) *
e_contact_text_height (ctxt->context,
@@ -431,7 +433,8 @@ get_bool (gchar *data)
}
static void
-get_string (gchar *data, gchar **variable)
+get_string (gchar *data,
+ gchar **variable)
{
g_free (*variable);
*variable = g_strdup ((data != NULL) ? data : "");
@@ -727,8 +730,8 @@ contact_page_draw_footer (GtkPrintOperation *operation,
pango_layout_set_text (layout, text, -1);
pango_layout_set_width (layout, -1);
- x = page_width/2.0 - page_margin;
- y = page_height - page_margin/2.0;
+ x = page_width / 2.0 - page_margin;
+ y = page_height - page_margin / 2.0;
cr = gtk_print_context_get_cairo_context (context);
diff --git a/addressbook/printing/test-print.c b/addressbook/printing/test-print.c
index 7747318175..6f461959c3 100644
--- a/addressbook/printing/test-print.c
+++ b/addressbook/printing/test-print.c
@@ -29,7 +29,8 @@
#include "e-contact-print.h"
gint
-main (gint argc, gchar *argv[])
+main (gint argc,
+ gchar *argv[])
{
GList *shown_fields = NULL;