From 739e141dbe48c9cfd6c9a7abaa15cd8dc36e0473 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 20 Jan 2001 15:37:36 +0000 Subject: Unset the GTK_CAN_FOCUS flag on the ECalendar. (e_calendar_focus_in): 2001-01-19 Federico Mena Quintero * e-calendar.c (e_calendar_init): Unset the GTK_CAN_FOCUS flag on the ECalendar. (e_calendar_focus_in): Removed function since it did nothing. (e_calendar_focus_out): Likewise. (e_calendar_key_press): Likewise. (e_calendar_init): Turn off the GTK_CAN_FOCUS flag for both arrow buttons. svn path=/trunk/; revision=7665 --- widgets/misc/ChangeLog | 10 ++++++++++ widgets/misc/e-calendar.c | 37 ++++--------------------------------- 2 files changed, 14 insertions(+), 33 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 00303b3080..14121734fa 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,13 @@ +2001-01-19 Federico Mena Quintero + + * e-calendar.c (e_calendar_init): Unset the GTK_CAN_FOCUS flag on + the ECalendar. + (e_calendar_focus_in): Removed function since it did nothing. + (e_calendar_focus_out): Likewise. + (e_calendar_key_press): Likewise. + (e_calendar_init): Turn off the GTK_CAN_FOCUS flag for both arrow + buttons. + 2001-01-17 Federico Mena Quintero * e-calendar-item.c (e_calendar_item_set_max_days_sel): Make zero diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index d0062a4fed..a8a960b7dd 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -99,12 +99,6 @@ static void e_calendar_size_allocate (GtkWidget *widget, GtkAllocation *allocation); static void e_calendar_draw (GtkWidget *widget, GdkRectangle *area); -static gint e_calendar_focus_in (GtkWidget *widget, - GdkEventFocus *event); -static gint e_calendar_focus_out (GtkWidget *widget, - GdkEventFocus *event); -static gint e_calendar_key_press (GtkWidget *widget, - GdkEventKey *event); static gint e_calendar_drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, @@ -150,9 +144,6 @@ e_calendar_class_init (ECalendarClass *class) widget_class->size_request = e_calendar_size_request; widget_class->size_allocate = e_calendar_size_allocate; widget_class->draw = e_calendar_draw; - widget_class->focus_in_event = e_calendar_focus_in; - widget_class->focus_out_event = e_calendar_focus_out; - widget_class->key_press_event = e_calendar_key_press; widget_class->drag_motion = e_calendar_drag_motion; widget_class->drag_leave = e_calendar_drag_leave; } @@ -168,6 +159,8 @@ e_calendar_init (ECalendar *cal) GdkPixmap *gdk_pixmap; GdkBitmap *gdk_mask; + GTK_WIDGET_UNSET_FLAGS (cal, GTK_CAN_FOCUS); + /* Create the small font. */ small_font = gdk_font_load (E_CALENDAR_SMALL_FONT); if (!small_font) @@ -188,6 +181,7 @@ e_calendar_init (ECalendar *cal) /* Create the arrow buttons to move to the previous/next month. */ button = gtk_button_new (); + GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); gtk_widget_show (button); gtk_signal_connect_object (GTK_OBJECT (button), "pressed", @@ -213,6 +207,7 @@ e_calendar_init (ECalendar *cal) NULL); button = gtk_button_new (); + GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); gtk_widget_show (button); gtk_signal_connect_object (GTK_OBJECT (button), "pressed", @@ -412,30 +407,6 @@ e_calendar_draw (GtkWidget *widget, } -static gint -e_calendar_focus_in (GtkWidget *widget, - GdkEventFocus *event) -{ - return FALSE; -} - - -static gint -e_calendar_focus_out (GtkWidget *widget, - GdkEventFocus *event) -{ - return FALSE; -} - - -static gint -e_calendar_key_press (GtkWidget *widget, - GdkEventKey *event) -{ - return FALSE; -} - - void e_calendar_set_minimum_size (ECalendar *cal, gint rows, -- cgit v1.2.3