Add missing cast.

Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.

	* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
	non-public _gtk_menu_item_set_placement.

	* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
This commit is contained in:
Owen Taylor 2001-09-19 21:29:57 +00:00 committed by Owen Taylor
parent 5a2659c215
commit 1513d3aa41
12 changed files with 69 additions and 4 deletions

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -1,3 +1,12 @@
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
* gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
non-public _gtk_menu_item_set_placement.
* gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
* gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c

View File

@ -334,7 +334,7 @@ gtk_menu_item_remove_submenu (GtkMenuItem *menu_item)
}
void
gtk_menu_item_set_placement (GtkMenuItem *menu_item,
_gtk_menu_item_set_placement (GtkMenuItem *menu_item,
GtkSubmenuPlacement placement)
{
g_return_if_fail (GTK_IS_MENU_ITEM (menu_item));

View File

@ -94,7 +94,7 @@ void gtk_menu_item_set_submenu (GtkMenuItem *menu_item,
GtkWidget *submenu);
GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item);
void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item);
void gtk_menu_item_set_placement (GtkMenuItem *menu_item,
void _gtk_menu_item_set_placement (GtkMenuItem *menu_item,
GtkSubmenuPlacement placement);
void gtk_menu_item_select (GtkMenuItem *menu_item);
void gtk_menu_item_deselect (GtkMenuItem *menu_item);

View File

@ -784,7 +784,7 @@ gtk_menu_shell_real_select_item (GtkMenuShell *menu_shell,
gtk_menu_shell_deselect (menu_shell);
menu_shell->active_menu_item = menu_item;
gtk_menu_item_set_placement (GTK_MENU_ITEM (menu_shell->active_menu_item),
_gtk_menu_item_set_placement (GTK_MENU_ITEM (menu_shell->active_menu_item),
GTK_MENU_SHELL_GET_CLASS (menu_shell)->submenu_placement);
gtk_menu_item_select (GTK_MENU_ITEM (menu_shell->active_menu_item));

View File

@ -82,8 +82,10 @@ GtkTooltips* gtk_tooltips_new (void);
void gtk_tooltips_enable (GtkTooltips *tooltips);
void gtk_tooltips_disable (GtkTooltips *tooltips);
#ifndef GTK_DISABLE_DEPRECATED
void gtk_tooltips_set_delay (GtkTooltips *tooltips,
guint delay);
#endif /* GTK_DISABLE_DEPRECATED */
void gtk_tooltips_set_tip (GtkTooltips *tooltips,
GtkWidget *widget,
const gchar *tip_text,

View File

@ -1356,7 +1356,7 @@ gtk_widget_new (GtkType type,
g_return_val_if_fail (gtk_type_is_a (type, GTK_TYPE_WIDGET), NULL);
va_start (var_args, first_property_name);
widget = g_object_new_valist (type, first_property_name, var_args);
widget = (GtkWidget *)g_object_new_valist (type, first_property_name, var_args);
va_end (var_args);
return widget;