From c273084980933111fe287d1ca3f312e3c8dc910b Mon Sep 17 00:00:00 2001 From: Denis Oliver Kropp Date: Wed, 4 Apr 2001 21:16:47 +0000 Subject: [PATCH] gtk_calendar_button_press: check for action_func != NULL --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkcalendar.c | 2 +- 8 files changed, 36 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5607946dcd..72d61e05ec 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-04-04 Denis Oliver Kropp + + * gtk/gtkcalendar.c (gtk_calendar_button_press): + check for action_func != NULL + 2001-04-04 Sven Neumann * tests/testgtk.c (test_init): corrected path to gtk.immodules diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index ad3571400a..00df16af66 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -2332,7 +2332,7 @@ gtk_calendar_button_press (GtkWidget *widget, action_func = gtk_calendar_set_year_next; /* only call the action on single click, not double */ - if (event->type == GDK_BUTTON_PRESS) + if (action_func && event->type == GDK_BUTTON_PRESS) (* action_func) (calendar); return action_func != NULL;