summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
diff options
context:
space:
mode:
authorMathias Hasselmann <hasselmm@src.gnome.org>2008-01-14 00:12:53 +0000
committerMathias Hasselmann <hasselmm@src.gnome.org>2008-01-14 00:12:53 +0000
commit7027d8fc16020302042ff4794570f8f2f4d7def1 (patch)
tree522d6893577e16e4a5519a7727ea925117136a85 /gtk/gtktoolitem.c
parente3625b6dfb37b98652e12825849069e9c7084f14 (diff)
downloadgtk+-7027d8fc16020302042ff4794570f8f2f4d7def1.tar.gz
Explain name choice for gtk_tool_item_toolbar_reconfigured.
* gtk/gtktoolitem.c: Add comment expaining name choice for gtk_tool_item_toolbar_reconfigured. svn path=/trunk/; revision=19362
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r--gtk/gtktoolitem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index debda87984..d86097ae9c 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -1179,6 +1179,13 @@ gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item,
void
gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item)
{
+ /* The slightely inaccurate name "gtk_tool_item_toolbar_reconfigured" was
+ * choosen over "gtk_tool_item_tool_shell_reconfigured", since the function
+ * emits the "toolbar-reconfigured" signal, not "tool-shell-reconfigured".
+ * Its not possible to rename the signal, and emitting another name than
+ * indicated by the function name would be quite confusing. That's the
+ * price of providing stable APIs.
+ */
g_return_if_fail (GTK_IS_TOOL_ITEM (tool_item));
g_signal_emit (tool_item, toolitem_signals[TOOLBAR_RECONFIGURED], 0);