[gtk/matthiasc/for-master] docs: Remove mentions of <accelerator>
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] docs: Remove mentions of <accelerator>
- Date: Thu, 3 Dec 2020 01:00:28 +0000 (UTC)
commit ab9e99218f8c5877b52b5eb61822ddb882294e8b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 2 19:59:44 2020 -0500
docs: Remove mentions of <accelerator>
That is no longer supported, keyboard shortcuts
are done with GtkShortcut now.
Fixes: #3429
gtk/gtkbuildable.h | 4 ++--
gtk/gtkwidget.c | 11 ++---------
2 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkbuildable.h b/gtk/gtkbuildable.h
index 058845caba..b446b570b9 100644
--- a/gtk/gtkbuildable.h
+++ b/gtk/gtkbuildable.h
@@ -110,8 +110,8 @@ struct _GtkBuildableParser
* @custom_tag_start: Implement this if the buildable needs to parse
* content below <child>. To handle an element, the implementation
* must fill in the @parser and @user_data and return %TRUE.
- * #GtkWidget implements this to parse keyboard accelerators specified
- * in <accelerator> elements.
+ * #GtkWidget implements this to parse accessible attributes specified
+ * in <accessibility> elements.
* Note that @user_data must be freed in @custom_tag_end or @custom_finished.
* @custom_tag_end: Called for the end tag of each custom element that is
* handled by the buildable (see @custom_tag_start).
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f649acfe74..ab9de00cd2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -249,15 +249,8 @@
* # GtkWidget as GtkBuildable
*
* The GtkWidget implementation of the #GtkBuildable interface supports a
- * custom `<accelerator>` element, which has attributes named ”key”, ”modifiers”
- * and ”signal” and allows to specify accelerators.
- *
- * An example of a UI definition fragment specifying an accelerator:
- * |[
- * <object class="GtkButton">
- * <accelerator key="q" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
- * </object>
- * ]|
+ * custom elements to specify various aspects of widgets that are not
+ * directly expressed as properties.
*
* If the parent widget uses a #GtkLayoutManager, #GtkWidget supports a
* custom `<layout>` element, used to define layout properties:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]