aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-22 03:50:41 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-22 03:50:41 +0800
commit489f84ce267ba513c56e37952fd4c2cbc16180f2 (patch)
tree21f97a2cf69f2632c5ec2fc02122d4ed5e8c2ded /calendar/gui/e-week-view.c
parent940383d6760233b3c265abcfbc843ed6e036e845 (diff)
downloadgsoc2013-evolution-489f84ce267ba513c56e37952fd4c2cbc16180f2.tar.gz
gsoc2013-evolution-489f84ce267ba513c56e37952fd4c2cbc16180f2.tar.zst
gsoc2013-evolution-489f84ce267ba513c56e37952fd4c2cbc16180f2.zip
Move the tooltip if it could hide in the corner.
svn path=/trunk/; revision=31860
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index ccfde3af78..cc2f88a385 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2554,7 +2554,7 @@ tooltip_event_cb (GnomeCanvasItem *item,
pevent->tooltip = (GtkWidget *)g_object_get_data (G_OBJECT (view), "tooltip-window");
if (pevent->tooltip) {
- gtk_window_move ((GtkWindow *)pevent->tooltip, ((int)((GdkEventMotion *)event)->x_root)+16, ((int)((GdkEventMotion *)event)->y_root) +16);
+ e_calendar_view_move_tip (pevent->tooltip, pevent->x+16, pevent->y+16);
}
return TRUE;
@@ -3125,9 +3125,9 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
pevent->y = ((GdkEventMotion *)gdkevent)->y_root;
pevent->tooltip = (GtkWidget *)g_object_get_data (G_OBJECT (week_view), "tooltip-window");
- if (pevent->tooltip)
- gtk_window_move ((GtkWindow *)pevent->tooltip, ((int)((GdkEventMotion *)gdkevent)->x_root)+16, ((int)((GdkEventMotion *)gdkevent)->y_root) +16);
-
+ if (pevent->tooltip) {
+ e_calendar_view_move_tip (pevent->tooltip, pevent->x+16, pevent->y+16);
+ }
return TRUE;
case GDK_FOCUS_CHANGE:
if (gdkevent->focus_change.in) {