forked from AuroraMiddleware/gtk
Allow accel_path == NULL. (#84241, James Henstridge.)
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Allow accel_path == NULL. (#84241, James Henstridge.)
This commit is contained in:
parent
9879b5b45c
commit
21f1b62d7e
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 23 18:45:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
|
||||||
|
Allow accel_path == NULL. (#84241, James Henstridge.)
|
||||||
|
|
||||||
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
|
||||||
|
@ -1129,7 +1129,8 @@ _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item,
|
|||||||
/**
|
/**
|
||||||
* gtk_menu_item_set_accel_path
|
* gtk_menu_item_set_accel_path
|
||||||
* @menu_item: a valid #GtkMenuItem
|
* @menu_item: a valid #GtkMenuItem
|
||||||
* @accel_path: accelerator path, corresponding to this menu item's functionality
|
* @accel_path: accelerator path, corresponding to this menu item's
|
||||||
|
* functionality, or %NULL to unset the current path.
|
||||||
*
|
*
|
||||||
* Set the accelerator path on @menu_item, through which runtime changes of the
|
* Set the accelerator path on @menu_item, through which runtime changes of the
|
||||||
* menu item's accelerator caused by the user can be identified and saved to
|
* menu item's accelerator caused by the user can be identified and saved to
|
||||||
@ -1150,7 +1151,8 @@ gtk_menu_item_set_accel_path (GtkMenuItem *menu_item,
|
|||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_MENU_ITEM (menu_item));
|
g_return_if_fail (GTK_IS_MENU_ITEM (menu_item));
|
||||||
g_return_if_fail (accel_path && accel_path[0] == '<' && strchr (accel_path, '/'));
|
g_return_if_fail (accel_path == NULL ||
|
||||||
|
(accel_path[0] == '<' && strchr (accel_path, '/')));
|
||||||
|
|
||||||
widget = GTK_WIDGET (menu_item);
|
widget = GTK_WIDGET (menu_item);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user