Commit 21f1b62d authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.)
parent 9879b5b4
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>
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
......
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>
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
......
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>
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
......
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>
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
......
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>
* gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
......
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>
* 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
* @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
* 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;
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);
......
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