check for accelerator table to be != NULL.

Mon Apr 13 05:03:11 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
                accelerator table to be != NULL.
                        (gtk_window_remove_accelerator_table): likewise.
This commit is contained in:
Tim Janik 1998-04-13 04:42:11 +00:00 committed by Tim Janik
parent 7ec269052d
commit 18dfa1ae90
8 changed files with 50 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -1,3 +1,9 @@
Mon Apr 13 05:03:11 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c (gtk_window_add_accelerator_table): check for
accelerator table to be != NULL.
(gtk_window_remove_accelerator_table): likewise.
Sun Apr 12 19:35:09 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
* INSTALL: typo, gtk-1.0.0 should be gtk+-1.0.0

View File

@ -350,13 +350,15 @@ gtk_window_set_focus (GtkWindow *window,
void
gtk_window_set_default (GtkWindow *window,
GtkWidget *defaultw)
GtkWidget *default_widget)
{
g_return_if_fail (window != NULL);
g_return_if_fail (GTK_IS_WINDOW (window));
g_return_if_fail ((defaultw == NULL) || GTK_WIDGET_CAN_DEFAULT (defaultw));
if (window->default_widget != defaultw)
if (default_widget)
g_return_if_fail (GTK_WIDGET_CAN_DEFAULT (default_widget));
if (window->default_widget != default_widget)
{
if (window->default_widget)
{
@ -364,7 +366,7 @@ gtk_window_set_default (GtkWindow *window,
gtk_widget_draw_default (window->default_widget);
}
window->default_widget = defaultw;
window->default_widget = default_widget;
if (window->default_widget)
{
@ -396,6 +398,7 @@ gtk_window_add_accelerator_table (GtkWindow *window,
{
g_return_if_fail (window != NULL);
g_return_if_fail (GTK_IS_WINDOW (window));
g_return_if_fail (table != NULL);
gtk_accelerator_table_ref (table);
window->accelerator_tables = g_list_prepend (window->accelerator_tables,
@ -410,6 +413,7 @@ gtk_window_remove_accelerator_table (GtkWindow *window,
g_return_if_fail (window != NULL);
g_return_if_fail (GTK_IS_WINDOW (window));
g_return_if_fail (table != NULL);
for (list = window->accelerator_tables; list; list = list->next)
{