aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-dateedit.c
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2003-12-05 10:01:46 +0800
committerHarry Lu <haip@src.gnome.org>2003-12-05 10:01:46 +0800
commitc65fbd94c0daff4ed02df7447e8eeaddd9cff9c0 (patch)
tree4ab6660ba1b1a728dbb00fdfd9b9a86310528318 /widgets/misc/e-dateedit.c
parent22f021924c1816eb5b958295e9dea290611c138d (diff)
downloadgsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar.gz
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar.bz2
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar.lz
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar.xz
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.tar.zst
gsoc2013-evolution-c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0.zip
Fix for bugzilla bug #51624 and #51627.
2003-12-04 Harry Lu <harry.lu@sun.com> Fix for bugzilla bug #51624 and #51627. * e-calendar-item.c: (e_calendar_item_selection_add_days): set the date to the first day of the month so that user can use keyboard's arrow key to select a date. (e_calendar_item_set_selection_if_emission): only set selection_changed if emission is TRUE. * e-calendar.c: (e_calendar_init): add back the "clicked" handler so that user can use keyboard to click the button. (e_calendar_start_auto_move): no need to move since it is already handled by the clicked handler (e_calendar_on_prev_clicked), (e_calendar_on_next_clicked): move the month here. * e-dateedit.c: (e_date_edit_show_date_popup): use gdk_window_focus instead of gdk_keyboard_grab so that the focus won't lost if user click the button with keyboard. (hide_date_popup): no need to call gdk_keyboard_ungrab. svn path=/trunk/; revision=23642
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r--widgets/misc/e-dateedit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index c6c2ad9bc7..94cd4a2874 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -1180,7 +1180,6 @@ e_date_edit_show_date_popup (EDateEdit *dedit)
position_date_popup (dedit);
gtk_widget_show (priv->cal_popup);
- gdk_keyboard_grab (priv->cal_popup->window, TRUE, GDK_CURRENT_TIME);
gtk_widget_grab_focus (priv->cal_popup);
gtk_grab_add (priv->cal_popup);
gdk_pointer_grab (priv->cal_popup->window, TRUE,
@@ -1188,6 +1187,7 @@ e_date_edit_show_date_popup (EDateEdit *dedit)
| GDK_BUTTON_RELEASE_MASK
| GDK_POINTER_MOTION_MASK),
NULL, NULL, GDK_CURRENT_TIME);
+ gdk_window_focus (priv->cal_popup->window, GDK_CURRENT_TIME);
}
@@ -1366,7 +1366,6 @@ hide_date_popup (EDateEdit *dedit)
gtk_widget_hide (dedit->priv->cal_popup);
gtk_grab_remove (dedit->priv->cal_popup);
gdk_pointer_ungrab (GDK_CURRENT_TIME);
- gdk_keyboard_ungrab (GDK_CURRENT_TIME);
}