forked from AuroraMiddleware/gtk
don't cast a NULL pointer.
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org> * gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
This commit is contained in:
parent
bfc969f697
commit
9addd8da2c
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sun Mar 15 08:27:06 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): don't cast a NULL pointer.
|
||||
|
||||
Sat Mar 14 19:36:16 PST 1998 Shawn T. Amundson <amundson@gimp.org>
|
||||
|
||||
* Released 0.99.7
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Mar 15 07:13:34 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gutils.c: changed *_handler variables to be named glib_*_handler,
|
||||
so you can easily access them from gdb.
|
||||
|
||||
Sat Mar 14 17:47:43 1998 Owen Taylor <owt1@cornell.edu>
|
||||
|
||||
* Makefile.am: Don't refer to current directory as $(top_builddir)
|
||||
|
@ -24,10 +24,10 @@
|
||||
#include "glib.h"
|
||||
|
||||
|
||||
static GErrorFunc error_func = NULL;
|
||||
static GWarningFunc warning_func = NULL;
|
||||
static GPrintFunc message_func = NULL;
|
||||
static GPrintFunc print_func = NULL;
|
||||
static GErrorFunc glib_error_func = NULL;
|
||||
static GWarningFunc glib_warning_func = NULL;
|
||||
static GPrintFunc glib_message_func = NULL;
|
||||
static GPrintFunc glib_print_func = NULL;
|
||||
|
||||
extern char* g_vsprintf (const gchar *fmt, va_list *args, va_list *args2);
|
||||
|
||||
@ -681,9 +681,9 @@ g_error (gchar *format, ...)
|
||||
va_end (args);
|
||||
va_end (args2);
|
||||
|
||||
if (error_func)
|
||||
if (glib_error_func)
|
||||
{
|
||||
(* error_func) (buf);
|
||||
(* glib_error_func) (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -707,9 +707,9 @@ g_warning (gchar *format, ...)
|
||||
va_end (args);
|
||||
va_end (args2);
|
||||
|
||||
if (warning_func)
|
||||
if (glib_warning_func)
|
||||
{
|
||||
(* warning_func) (buf);
|
||||
(* glib_warning_func) (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -731,9 +731,9 @@ g_message (gchar *format, ...)
|
||||
va_end (args);
|
||||
va_end (args2);
|
||||
|
||||
if (message_func)
|
||||
if (glib_message_func)
|
||||
{
|
||||
(* message_func) (buf);
|
||||
(* glib_message_func) (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -755,9 +755,9 @@ g_print (gchar *format, ...)
|
||||
va_end (args);
|
||||
va_end (args2);
|
||||
|
||||
if (print_func)
|
||||
if (glib_print_func)
|
||||
{
|
||||
(* print_func) (buf);
|
||||
(* glib_print_func) (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -770,8 +770,8 @@ g_set_error_handler (GErrorFunc func)
|
||||
{
|
||||
GErrorFunc old_error_func;
|
||||
|
||||
old_error_func = error_func;
|
||||
error_func = func;
|
||||
old_error_func = glib_error_func;
|
||||
glib_error_func = func;
|
||||
|
||||
return old_error_func;
|
||||
}
|
||||
@ -781,8 +781,8 @@ g_set_warning_handler (GWarningFunc func)
|
||||
{
|
||||
GWarningFunc old_warning_func;
|
||||
|
||||
old_warning_func = warning_func;
|
||||
warning_func = func;
|
||||
old_warning_func = glib_warning_func;
|
||||
glib_warning_func = func;
|
||||
|
||||
return old_warning_func;
|
||||
}
|
||||
@ -792,8 +792,8 @@ g_set_message_handler (GPrintFunc func)
|
||||
{
|
||||
GPrintFunc old_message_func;
|
||||
|
||||
old_message_func = message_func;
|
||||
message_func = func;
|
||||
old_message_func = glib_message_func;
|
||||
glib_message_func = func;
|
||||
|
||||
return old_message_func;
|
||||
}
|
||||
@ -803,8 +803,8 @@ g_set_print_handler (GPrintFunc func)
|
||||
{
|
||||
GPrintFunc old_print_func;
|
||||
|
||||
old_print_func = print_func;
|
||||
print_func = func;
|
||||
old_print_func = glib_print_func;
|
||||
glib_print_func = func;
|
||||
|
||||
return old_print_func;
|
||||
}
|
||||
|
@ -736,8 +736,6 @@ gtk_menu_key_press (GtkWidget *widget,
|
||||
{
|
||||
GtkAllocation allocation;
|
||||
GtkAcceleratorTable *table;
|
||||
GtkMenuShell *menu_shell;
|
||||
GtkMenuItem *menu_item;
|
||||
gchar *signame;
|
||||
int delete;
|
||||
|
||||
@ -750,11 +748,16 @@ gtk_menu_key_press (GtkWidget *widget,
|
||||
|
||||
if (delete || ((event->keyval >= 0x20) && (event->keyval <= 0xFF)))
|
||||
{
|
||||
menu_shell = GTK_MENU_SHELL (widget);
|
||||
menu_item = GTK_MENU_ITEM (menu_shell->active_menu_item);
|
||||
GtkMenuShell *menu_shell;
|
||||
|
||||
if (menu_item && GTK_BIN (menu_item)->child)
|
||||
menu_shell = GTK_MENU_SHELL (widget);
|
||||
|
||||
if (menu_shell->active_menu_item && GTK_BIN (menu_shell->active_menu_item)->child)
|
||||
{
|
||||
GtkMenuItem *menu_item;
|
||||
|
||||
menu_item = GTK_MENU_ITEM (menu_shell->active_menu_item);
|
||||
|
||||
/* block resizes */
|
||||
gtk_container_block_resize (GTK_CONTAINER (widget));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user