aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-01-20 23:37:36 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-01-20 23:37:36 +0800
commit739e141dbe48c9cfd6c9a7abaa15cd8dc36e0473 (patch)
treef56168ae80e59484702391cf8c6eb2111944c887 /widgets
parent4262a5d52e50d7bbdb82410b938c82b8a1f1ec7b (diff)
downloadgsoc2013-evolution-739e141dbe48c9cfd6c9a7abaa15cd8dc36e0473.tar.gz
gsoc2013-evolution-739e141dbe48c9cfd6c9a7abaa15cd8dc36e0473.tar.zst
gsoc2013-evolution-739e141dbe48c9cfd6c9a7abaa15cd8dc36e0473.zip
Unset the GTK_CAN_FOCUS flag on the ECalendar. (e_calendar_focus_in):
2001-01-19 Federico Mena Quintero <federico@ximian.com> * 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog10
-rw-r--r--widgets/misc/e-calendar.c37
2 files changed, 14 insertions, 33 deletions
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 <federico@ximian.com>
+
+ * 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 <federico@ximian.com>
* 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,