r15700 - gnucash/trunk/src/gnome-utils - Use correct index for calendar month labels; remove unused identifiers.
Josh Sled
jsled at cvs.gnucash.org
Thu Mar 8 23:00:29 EST 2007
Author: jsled
Date: 2007-03-08 23:00:28 -0500 (Thu, 08 Mar 2007)
New Revision: 15700
Trac: http://svn.gnucash.org/trac/changeset/15700
Modified:
gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
Log:
Use correct index for calendar month labels; remove unused identifiers.
Modified: gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-dense-cal.c 2007-03-09 03:22:04 UTC (rev 15699)
+++ gnucash/trunk/src/gnome-utils/gnc-dense-cal.c 2007-03-09 04:00:28 UTC (rev 15700)
@@ -72,7 +72,6 @@
static const gchar* MARK_COLOR = "Yellow";
-static QofLogModule log_module = GNC_MOD_SX;
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "gnc.gui.dense-cal"
@@ -289,10 +288,8 @@
{
gint i;
gint maxWidth, maxHeight;
- gint width;
GtkStyle *style;
PangoLayout *layout;
- const PangoFontDescription *existing_font_desc;
PangoFontDescription *font_desc;
gint font_size;
gint font_size_reduction_units = 1;
@@ -465,7 +462,6 @@
static void
gnc_dense_cal_dispose (GObject *object)
{
- int i;
GncDenseCal *dcal;
g_return_if_fail(object != NULL);
g_return_if_fail(GNC_IS_DENSE_CAL(object));
@@ -815,7 +811,7 @@
{
int i;
int x1, x2, y1, y2;
- GdkColor markColor, black;
+ GdkColor markColor;
GdkGCValues current_values;
gdk_gc_get_values(widget->style->fg_gc[widget->state], ¤t_values);
@@ -936,12 +932,12 @@
for (i=0; i<12; i++)
{
- guint x, y, idx;
+ guint idx;
if (dcal->monthPositions[i].x == -1)
break;
idx = (dcal->month - 1 + i) % 12;
- pango_layout_set_text(layout, month_name(i), -1);
+ pango_layout_set_text(layout, month_name(idx), -1);
gdk_draw_layout(GDK_DRAWABLE(dcal->drawbuf),
widget->style->fg_gc[widget->state],
dcal->leftPadding + dcal->monthPositions[i].x,
More information about the gnucash-changes
mailing list