Commit 18dfa1ae authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

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.
parent 7ec26905
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment