diff --git a/gtk/deprecated/gtkactiongroup.c b/gtk/deprecated/gtkactiongroup.c index 45eeb1c819..9bd4e8abe1 100644 --- a/gtk/deprecated/gtkactiongroup.c +++ b/gtk/deprecated/gtkactiongroup.c @@ -56,19 +56,20 @@ * # GtkActionGroup as GtkBuildable # {#GtkActionGroup-BUILDER-UI} * * The #GtkActionGroup implementation of the #GtkBuildable interface accepts - * #GtkAction objects as elements in UI definitions. + * #GtkAction objects as `` elements in UI definitions. * * Note that it is probably more common to define actions and action groups * in the code, since they are directly related to what the code can do. * * The GtkActionGroup implementation of the GtkBuildable interface supports - * a custom element, which has attributes named “key“ and + * a custom `` element, which has attributes named “key“ and * “modifiers“ and allows to specify accelerators. This is similar to the - * element of #GtkWidget, the main difference is that + * `` element of #GtkWidget, the main difference is that * it doesn’t allow you to specify a signal. * * ## A #GtkDialog UI definition fragment. ## - * |[ + * + * |[ * * * diff --git a/gtk/deprecated/gtkiconfactory.c b/gtk/deprecated/gtkiconfactory.c index 5ac19ca1a0..04579a9b61 100644 --- a/gtk/deprecated/gtkiconfactory.c +++ b/gtk/deprecated/gtkiconfactory.c @@ -72,8 +72,8 @@ * * # GtkIconFactory as GtkBuildable # {#GtkIconFactory-BUILDER-UI} * - * GtkIconFactory supports a custom element, which can contain - * multiple elements. The following attributes are allowed: + * GtkIconFactory supports a custom `` element, which can contain + * multiple `` elements. The following attributes are allowed: * * - stock-id * diff --git a/gtk/deprecated/gtkrecentaction.c b/gtk/deprecated/gtkrecentaction.c index 3431e3743f..d5677bef08 100644 --- a/gtk/deprecated/gtkrecentaction.c +++ b/gtk/deprecated/gtkrecentaction.c @@ -41,9 +41,9 @@ * #GtkRecentChooserMenu. * * To construct a submenu showing recently used files, use a #GtkRecentAction - * as the action for a . To construct a menu toolbutton showing + * as the action for a ``. To construct a menu toolbutton showing * the recently used files in the popup menu, use a #GtkRecentAction as the - * action for a element. + * action for a `` element. */ diff --git a/gtk/deprecated/gtkuimanager.c b/gtk/deprecated/gtkuimanager.c index 8b0233fee5..39da4cbdcc 100644 --- a/gtk/deprecated/gtkuimanager.c +++ b/gtk/deprecated/gtkuimanager.c @@ -56,16 +56,16 @@ * @Title: GtkUIManager * @See_also: #GtkBuilder * + * A #GtkUIManager constructs a user interface (menus and toolbars) from + * one or more UI definitions, which reference actions from one or more + * action groups. + * * > GtkUIManager is deprecated since GTK+ 3.10. To construct user interfaces * > from XML definitions, you should use #GtkBuilder, #GMenuModel, et al. To * > work with actions, use #GAction, #GtkActionable et al. These newer classes * > support richer functionality and integration with various desktop shells. * > It should be possible to migrate most/all functionality from GtkUIManager. * - * A #GtkUIManager constructs a user interface (menus and toolbars) from - * one or more UI definitions, which reference actions from one or more - * action groups. - * * # UI Definitions # {#XML-UI} * * The UI definitions are specified in an XML format which can be @@ -126,7 +126,7 @@ * * # A UI definition # * - * |[ + * |[ * * * @@ -213,7 +213,7 @@ * * Every action has an accelerator path. Accelerators are installed together * with menuitem proxies, but they can also be explicitly added with - * elements in the UI definition. This makes it possible to + * `` elements in the UI definition. This makes it possible to * have accelerators for actions even if they have no visible proxies. * * # Smart Separators # {#Smart-Separators} @@ -246,10 +246,10 @@ * # GtkUIManager as GtkBuildable # {#GtkUIManager-BUILDER-UI} * * The GtkUIManager implementation of the GtkBuildable interface accepts - * GtkActionGroup objects as elements in UI definitions. + * GtkActionGroup objects as `` elements in UI definitions. * * A GtkUIManager UI definition as described above can be embedded in - * an GtkUIManager element in a GtkBuilder UI definition. + * an GtkUIManager `` element in a GtkBuilder UI definition. * * The widgets that are constructed by a GtkUIManager can be embedded in * other parts of the constructed user interface with the help of the @@ -257,7 +257,7 @@ * * ## An embedded GtkUIManager UI definition * - * |[ + * |[ * * * @@ -1096,10 +1096,10 @@ gtk_ui_manager_get_accel_group (GtkUIManager *manager) * Looks up a widget by following a path. * The path consists of the names specified in the XML description of the UI. * separated by “/”. Elements which don’t have a name or action attribute in - * the XML (e.g. ) can be addressed by their XML element name + * the XML (e.g. ``) can be addressed by their XML element name * (e.g. "popup"). The root element ("/ui") can be omitted in the path. * - * Note that the widget found by following a path that ends in a ; + * Note that the widget found by following a path that ends in a ``; * element is the menuitem to which the menu is attached, not the menu it * manages. * @@ -1937,7 +1937,7 @@ add_ui_from_string (GtkUIManager *manager, * @error: return location for an error * * Parses a string containing a [UI definition][XML-UI] and merges it with - * the current contents of @manager. An enclosing element is added if + * the current contents of @manager. An enclosing `` element is added if * it is missing. * * Returns: The merge id for the merged UI. The merge id can be used diff --git a/gtk/gtkbuildable.c b/gtk/gtkbuildable.c index d16e008c93..9c0b54a2c7 100644 --- a/gtk/gtkbuildable.c +++ b/gtk/gtkbuildable.c @@ -236,7 +236,7 @@ gtk_buildable_construct_child (GtkBuildable *buildable, * @data: (out): return location for user data that will be passed in * to parser functions * - * This is called for each unknown element under . + * This is called for each unknown element under ``. * * Returns: %TRUE if a object has a custom implementation, %FALSE * if it doesn't. diff --git a/gtk/gtkbuildable.h b/gtk/gtkbuildable.h index 9652a5edf4..518b4d1b0c 100644 --- a/gtk/gtkbuildable.h +++ b/gtk/gtkbuildable.h @@ -58,15 +58,15 @@ typedef struct _GtkBuildableIface GtkBuildableIface; * is created. * @construct_child: Constructs a child of a buildable that has been * specified as “constructor” in the UI definition. #GtkUIManager implements - * this to reference to a widget created in a tag which is outside + * this to reference to a widget created in a `` tag which is outside * of the normal GtkBuilder UI definition hierarchy. A reference to the * constructed object is returned and becomes owned by the caller. * @custom_tag_start: Implement this if the buildable needs to parse - * content below . To handle an element, the implementation + * content below ``. 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 elements. #GtkContainer implements it to map - * properties defined via elements to child properties. + * in `` elements. #GtkContainer implements it to map + * properties defined via `` elements to child properties. * 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/gtkbuilder.c b/gtk/gtkbuilder.c index 93be663fa5..886913b40a 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -69,25 +69,25 @@ * * [RELAX NG Compact Syntax](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuilder.rnc) * - * The toplevel element is . It optionally takes a “domain” + * The toplevel element is ``. It optionally takes a “domain” * attribute, which will make the builder look for translated strings * using dgettext() in the domain specified. This can also be done by * calling gtk_builder_set_translation_domain() on the builder. - * Objects are described by elements, which can contain - * elements to set properties, elements which - * connect signals to handlers, and elements, which describe + * Objects are described by `` elements, which can contain + * `` elements to set properties, `` elements which + * connect signals to handlers, and `` elements, which describe * child objects (most often widgets inside a container, but also e.g. - * actions in an action group, or columns in a tree model). A - * element contains an element which describes the child object. - * The target toolkit version(s) are described by elements, + * actions in an action group, or columns in a tree model). A `` + * element contains an `` element which describes the child object. + * The target toolkit version(s) are described by `` elements, * the “lib” attribute specifies the widget library in question (currently * the only supported value is “gtk+”) and the “version” attribute specifies - * the target version in the form “.”. The builder will error + * the target version in the form `.`. The builder will error * out if the version requirements are not met. * - * Typically, the specific kind of object represented by an + * Typically, the specific kind of object represented by an `` * element is specified by the “class” attribute. If the type has not - * been loaded yet, GTK+ tries to find the get_type() function from the + * been loaded yet, GTK+ tries to find the `get_type()` function from the * class name by applying heuristics. This works in most cases, but if * necessary, it is possible to specify the name of the get_type() function * explictly with the "type-func" attribute. As a special case, GtkBuilder @@ -100,10 +100,10 @@ * application to retrieve them from the builder with gtk_builder_get_object(). * An id is also necessary to use the object as property value in other * parts of the UI definition. GTK+ reserves ids starting and ending - * with ___ (3 underscores) for its own purposes. + * with `___` (3 underscores) for its own purposes. * * Setting properties of objects is pretty straightforward with the - * element: the “name” attribute specifies the name of the + * `` element: the “name” attribute specifies the name of the * property, and the content of the element specifies the value. * If the “translatable” attribute is set to a true value, GTK+ uses * gettext() (or dgettext() if the builder has a translation domain set) @@ -141,7 +141,7 @@ * Internally builder implements this using GBinding objects. * For more information see g_object_bind_property() * - * Signal handlers are set up with the element. The “name” + * Signal handlers are set up with the `` element. The “name” * attribute specifies the name of the signal, and the “handler” attribute * specifies the function to connect to the signal. By default, GTK+ tries * to find the handler using g_module_symbol(), but this can be changed by @@ -157,19 +157,19 @@ * been constructed by GTK+ as part of a composite widget, to set * properties on them or to add further children (e.g. the @vbox of * a #GtkDialog). This can be achieved by setting the “internal-child” - * property of the element to a true value. Note that GtkBuilder - * still requires an element for the internal child, even if it + * property of the `` element to a true value. Note that GtkBuilder + * still requires an `` element for the internal child, even if it * has already been constructed. * * A number of widgets have different places where a child can be added * (e.g. tabs vs. page content in notebooks). This can be reflected in - * a UI definition by specifying the “type” attribute on a + * a UI definition by specifying the “type” attribute on a `` * The possible values for the “type” attribute are described in the * sections describing the widget-specific portions of UI definitions. * * # A GtkBuilder UI Definition * - * |[ + * |[ * * * @@ -195,14 +195,14 @@ * * Beyond this general structure, several object classes define their * own XML DTD fragments for filling in the ANY placeholders in the DTD - * above. Note that a custom element in a element gets parsed by + * above. Note that a custom element in a `` element gets parsed by * the custom tag handler of the parent object, while a custom element in - * an element gets parsed by the custom tag handler of the object. + * an `` element gets parsed by the custom tag handler of the object. * * These XML fragments are explained in the documentation of the * respective objects. * - * Additionally, since 3.10 a special