static void
draw_clock_hand_common(GtkWidget *clock, cairo_t *cr, double angle,
- double len_main_ratio, double len_ext_ratio, double width_ratio)
+ double len_main_ratio, double len_ext_ratio,
+ double width_ratio)
{
gint center_x, center_y;
double sin_x, cos_y;
length = radius * len_ext_ratio;
/*
- * If optional extension len is non null, starting position is at the
+ * If optional extension len is non null, starting position is at the
* outer end of extension. Otherwise, starting position is at center.
*/
cairo_move_to(cr, center_x - length * sin_x,
angle = M_PI / 30 * seconds;
draw_clock_hand_common(clock, cr, angle,
HAND_SECONDS_LENGTH1_RATIO,
- HAND_SECONDS_LENGTH2_RATIO, /* Draw small extension */
+ HAND_SECONDS_LENGTH2_RATIO, /* Draw small
+ * extension
+ */
HAND_SECONDS_WIDTH_RATIO);
}
if (hvclock_mode == CLOCK_MODE) {
draw_clock_background(clock, cr);
draw_clock_hands(clock, cr);
- } else
+ } else {
draw_calendar(clock, cr);
+ }
cairo_destroy(cr);
printf(" -h display this help and exit\n");
printf(" -n disable dockapp mode\n");
printf(" -s display seconds hand\n");
- printf(" -version display version information"
- " and exit\n");
+ printf(" -version display version information");
+ printf(" and exit\n");
printf("\n");
}
} else if (geometry_on != false) {
geometry_on = false;
hvclock_infos.geometry_arg = token;
- } else
+ } else {
InvalidOption("invalid option", token);
+ }
break;
} /* end switch( token[0] ) */
} /* end for */
InvalidOption("missing display parameter", NULL);
else if (geometry_on != false)
InvalidOption("missing geometry parameter", NULL);
-
}