diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-03-01 03:05:14 +0800 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-03-01 03:05:14 +0800 |
commit | c97af7103f0558993b505f5d8199bca7caacc836 (patch) | |
tree | 96684901f8cf9c03f5381bc8db089ca82bd4dafd /calendar/gncal-full-day.c | |
parent | 0ad91d0f28af42ad948ad4bebf3e4da5fef0915f (diff) | |
download | gsoc2013-evolution-c97af7103f0558993b505f5d8199bca7caacc836.tar.gz gsoc2013-evolution-c97af7103f0558993b505f5d8199bca7caacc836.tar.zst gsoc2013-evolution-c97af7103f0558993b505f5d8199bca7caacc836.zip |
For DRAG_MOVE, DRAG_SIZE_TOP and DRAG_SIZE_BOTTOM: call child_focus_out ()
1999-02-28 Martin Baulig <martin@home-of-linux.org>
* gncal-full-day.c (recompute_motion): For DRAG_MOVE, DRAG_SIZE_TOP
and DRAG_SIZE_BOTTOM: call child_focus_out () if the child currently
has the focus.
svn path=/trunk/; revision=717
Diffstat (limited to 'calendar/gncal-full-day.c')
-rw-r--r-- | calendar/gncal-full-day.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/calendar/gncal-full-day.c b/calendar/gncal-full-day.c index e813eefbce..596b827d00 100644 --- a/calendar/gncal-full-day.c +++ b/calendar/gncal-full-day.c @@ -1759,6 +1759,9 @@ recompute_motion (GncalFullDay *fullday, int y) case DRAG_MOVE: has_focus = GTK_WIDGET_HAS_FOCUS (di->child->widget); + if (has_focus) + child_focus_out (di->child->widget, NULL, di->child); + row = get_row_from_y (fullday, y - di->child_click_y + (has_focus ? HANDLE_SIZE : 0), TRUE); if (row > (f_rows - di->child_rows_used)) @@ -1769,6 +1772,11 @@ recompute_motion (GncalFullDay *fullday, int y) break; case DRAG_SIZE_TOP: + has_focus = GTK_WIDGET_HAS_FOCUS (di->child->widget); + + if (has_focus) + child_focus_out (di->child->widget, NULL, di->child); + row = get_row_from_y (fullday, y + HANDLE_SIZE, TRUE); if (row > (di->child_start_row + di->child_rows_used - 1)) @@ -1780,6 +1788,11 @@ recompute_motion (GncalFullDay *fullday, int y) break; case DRAG_SIZE_BOTTOM: + has_focus = GTK_WIDGET_HAS_FOCUS (di->child->widget); + + if (has_focus) + child_focus_out (di->child->widget, NULL, di->child); + row = get_row_from_y (fullday, y - HANDLE_SIZE, TRUE); if (row <= di->child_start_row) |