forked from AuroraMiddleware/gtk
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:
parent
7ec269052d
commit
18dfa1ae90
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user