aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gncal-day-panel.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-05-07 09:32:53 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-05-07 09:32:53 +0800
commitca6dd05c600cfbaf6c9b16059b2377932463ea0d (patch)
treefc0e4a58543e23603dcef43f7e7da381102428cd /calendar/gui/gncal-day-panel.c
parente5ce5147f9b4e17bdef88987d714f52d7dab475a (diff)
downloadgsoc2013-evolution-ca6dd05c600cfbaf6c9b16059b2377932463ea0d.tar.gz
gsoc2013-evolution-ca6dd05c600cfbaf6c9b16059b2377932463ea0d.tar.zst
gsoc2013-evolution-ca6dd05c600cfbaf6c9b16059b2377932463ea0d.zip
My attempt at getting the nice pixmaps drawn next to the events.
My attempt at getting the nice pixmaps drawn next to the events. For some wierdo reason it is not drawing them now. svn path=/trunk/; revision=208
Diffstat (limited to 'calendar/gui/gncal-day-panel.c')
-rw-r--r--calendar/gui/gncal-day-panel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/gncal-day-panel.c b/calendar/gui/gncal-day-panel.c
index e27e8f7e4e..00d4f6f31e 100644
--- a/calendar/gui/gncal-day-panel.c
+++ b/calendar/gui/gncal-day-panel.c
@@ -51,13 +51,15 @@ full_day_size_allocated (GtkWidget *widget, GtkAllocation *allocation, GncalDayP
{
GtkAdjustment *adj;
int yoffset;
+ gfloat newval;
adj = gtk_scrolled_window_get_vadjustment (dpanel->fullday_sw);
yoffset = gncal_full_day_get_day_start_yoffset (GNCAL_FULL_DAY (widget));
- adj->value = adj->lower + (adj->upper - adj->lower) * (double) yoffset / allocation->height;
- gtk_signal_emit_by_name (GTK_OBJECT (adj), "value_changed");
+ newval = adj->lower + (adj->upper - adj->lower) * (double) yoffset / allocation->height;
+ if (newval != adj->value)
+ gtk_signal_emit_by_name (GTK_OBJECT (adj), "value_changed");
}
static void