summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-06-12 12:59:26 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-06-12 12:59:26 +0000
commit8200c738febe26c4411bda939bb953b7302bbb6a (patch)
tree558eb26773b541653b6bdbad7a52e16461ce567e /src
parentFix a bug changing desktop (diff)
downloadinkscape-8200c738febe26c4411bda939bb953b7302bbb6a.tar.gz
inkscape-8200c738febe26c4411bda939bb953b7302bbb6a.zip
Update comments to match reality.
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget/combo-box-entry-tool-item.cpp4
-rw-r--r--src/ui/widget/combo-box-entry-tool-item.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/widget/combo-box-entry-tool-item.cpp b/src/ui/widget/combo-box-entry-tool-item.cpp
index 6268f6c0c..edab0804b 100644
--- a/src/ui/widget/combo-box-entry-tool-item.cpp
+++ b/src/ui/widget/combo-box-entry-tool-item.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * A subclass of GtkAction that wraps a GtkComboBoxEntry.
+ * A class derived from Gtk::ToolItem that wraps a GtkComboBoxEntry.
* Features:
* Setting GtkEntryBox width in characters.
* Passing a function for formatting cells.
@@ -606,7 +606,7 @@ ComboBoxEntryToolItem::match_selected_cb( GtkEntryCompletion* /*widget*/, GtkTre
// Set text in GtkEntry
gtk_entry_set_text (GTK_ENTRY (entry), family );
- // Set text in GtkAction
+ // Set text in ToolItem
g_free( action->_text );
action->_text = family;
diff --git a/src/ui/widget/combo-box-entry-tool-item.h b/src/ui/widget/combo-box-entry-tool-item.h
index 70c8e94e7..2c2b71542 100644
--- a/src/ui/widget/combo-box-entry-tool-item.h
+++ b/src/ui/widget/combo-box-entry-tool-item.h
@@ -1,10 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * A subclass of GtkAction that wraps a GtkComboBoxEntry.
+ * A class derived from Gtk::ToolItem that wraps a GtkComboBoxEntry.
* Features:
* Setting GtkEntryBox width in characters.
* Passing a function for formatting cells.
- * Displaying a warning if text isn't in list.
+ * Displaying a warning if entry text isn't in list.
+ * Check comma separated values in text against list. (Useful for font-family fallbacks.)
* Setting names for GtkComboBoxEntry and GtkEntry (actionName_combobox, actionName_entry)
* to allow setting resources.
*