From f5b8bde792cfaa06a5960bf2498c8c74c6e289bd Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 3 Mar 2002 01:43:01 +0000 Subject: [PATCH] Add a note to the docs about how to use this in the context of changeable Sat Mar 2 20:39:38 2002 Owen Taylor * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): Add a note to the docs about how to use this in the context of changeable accelerators. (#72382, Mark Patton) --- ChangeLog | 8 +++++++- ChangeLog.pre-2-0 | 8 +++++++- ChangeLog.pre-2-10 | 8 +++++++- ChangeLog.pre-2-2 | 8 +++++++- ChangeLog.pre-2-4 | 8 +++++++- ChangeLog.pre-2-6 | 8 +++++++- ChangeLog.pre-2-8 | 8 +++++++- gtk/gtkimagemenuitem.c | 9 ++++++++- 8 files changed, 57 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5e4239a1b..cfd214a9c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,6 +1,12 @@ +Sat Mar 2 20:39:38 2002 Owen Taylor + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): + Add a note to the docs about how to use this in the + context of changeable accelerators. (#72382, Mark Patton) + Sat Mar 2 19:48:10 2002 Owen Taylor - * configure.in: Add -lX11 into x_libs. + * configure.in: Fix missing -lX11 into x_libs with pangoxft. Fri Mar 1 00:46:49 2002 Owen Taylor diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c index 19f8f4101..a51ccf024 100644 --- a/gtk/gtkimagemenuitem.c +++ b/gtk/gtkimagemenuitem.c @@ -350,12 +350,19 @@ gtk_image_menu_item_new_with_mnemonic (const gchar *label) /** * gtk_image_menu_item_new_from_stock: * @stock_id: the name of the stock item. - * @accel_group: the #GtkAccelGroup to add the menu items accelerator to. + * @accel_group: the #GtkAccelGroup to add the menu items accelerator to, + * or %NULL. * @returns: a new #GtkImageMenuItem. * * Creates a new #GtkImageMenuItem containing the image and text from a * stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK * and #GTK_STOCK_APPLY. + * + * If you want this menu item to have changeable accelerators, then + * pass in %NULL for @accel_group call gtk_menu_item_set_accel_path() + * with an appropriate path for the menu item, then use gtk_stock_lookup() + * too look up the standard accelerator for the stock item and + * if one is found, call gtk_accel_map_add_entry() to register it. **/ GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id, -- 2.43.2