diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-08 00:04:57 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-08 00:04:57 +0000 |
commit | c1808baa01e7db5e304a857132087e496641726a (patch) | |
tree | 7f7af3dece9f8d380eeab17ce26ad17519c181f8 /gtk/gtkaccelmap.c | |
parent | 947c91dca741232a76aca65173cabefae9d70855 (diff) | |
download | gtk+-c1808baa01e7db5e304a857132087e496641726a.tar.gz |
Doc typo fix. (#68172)
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
* gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
* gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
* gtk/gtkrc.c (gtk_rc_get_style_by_paths),
gtk/gtkwidget.c (gtk_widget_get_toplevel,
gtk_widget_push_composite_child), gtk/gtkdialog.c
(gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
from messing up the indentation of inline examples.
* gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
instead of getenv().
* gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
* gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
Document.
* gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id()
instead of GTK_WINDOW_XWINDOW(). (#68172)
* gtk/gtk-sections.txt: Move functions which are documented
as "private" or "internal" into Private subsections.
* gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml,
gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml,
gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml,
gtk/tmpl/gtkfeatures.sgml: Minor markup fixes.
* gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs.
* gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml,
gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc.
* gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
Diffstat (limited to 'gtk/gtkaccelmap.c')
-rw-r--r-- | gtk/gtkaccelmap.c | 74 |
1 files changed, 52 insertions, 22 deletions
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c index 6ba3fe32c0..2f4e6d1fb3 100644 --- a/gtk/gtkaccelmap.c +++ b/gtk/gtkaccelmap.c @@ -104,18 +104,18 @@ _gtk_accel_path_is_valid (const gchar *accel_path) } /** - * gtk_accel_map_add_entry + * gtk_accel_map_add_entry: * @accel_path: valid accelerator path * @accel_key: the accelerator key * @accel_mods: the accelerator modifiers * - * Register a new accelerator with the global accelerator map. + * Registers a new accelerator with the global accelerator map. * This function should only be called once per @accel_path * with the canonical @accel_key and @accel_mods for this path. * To change the accelerator during runtime programatically, use * gtk_accel_map_change_entry(). * The accelerator path must consist of "<WINDOWTYPE>/Category1/Category2/.../Action", - * where WINDOWTYPE should be a unique application-specific identifier, that + * where <WINDOWTYPE> should be a unique application-specific identifier, that * corresponds to the kind of window the accelerator is being used in, e.g. "Gimp-Image", * "Abiword-Document" or "Gnumeric-Settings". * The Category1/.../Action portion is most appropriately chosen by the action the @@ -164,9 +164,9 @@ gtk_accel_map_add_entry (const gchar *accel_path, } /** - * gtk_accel_map_lookup_entry - * @accel_path: valid accelerator path - * @key: accelerator key to be filled in (optional) + * gtk_accel_map_lookup_entry: + * @accel_path: a valid accelerator path + * @key: the accelerator key to be filled in (optional) * @returns: %TRUE if @accel_path is known, %FALSE otherwise * * Looks up the accelerator entry for @accel_path and fills in @key. @@ -378,14 +378,14 @@ internal_change_entry (const gchar *accel_path, } /** - * gtk_accel_map_change_entry - * @accel_path: valid accelerator path - * @accel_key: new accelerator key - * @accel_mods: new accelerator modifiers + * gtk_accel_map_change_entry: + * @accel_path: a valid accelerator path + * @accel_key: the new accelerator key + * @accel_mods: the new accelerator modifiers * @replace: %TRUE if other accelerators may be deleted upon conflicts * @returns: %TRUE if the accelerator could be changed, %FALSE otherwise * - * Change the @accel_key and @accel_mods currently associated with @accel_path. + * Changes the @accel_key and @accel_mods currently associated with @accel_path. * Due to conflicts with other accelerators, a change may not always be possible, * @replace indicates whether other accelerators may be deleted to resolve such * conflicts. A change will only occur if all conflicts could be resolved (which @@ -488,6 +488,12 @@ accel_map_parse_statement (GScanner *scanner) } } +/** + * gtk_accel_map_load_scanner: + * @scanner: a #GScanner which has already been provided with an input file + * + * #GScanner variant of gtk_accel_map_load(). + */ void gtk_accel_map_load_scanner (GScanner *scanner) { @@ -530,10 +536,11 @@ gtk_accel_map_load_scanner (GScanner *scanner) } /** - * gtk_accel_map_load_fd - * @fd: valid readable file descriptor + * gtk_accel_map_load_fd: + * @fd: a valid readable file descriptor * * Filedescriptor variant of gtk_accel_map_load(). + * * Note that the file descriptor will not be closed by this function. */ void @@ -553,7 +560,7 @@ gtk_accel_map_load_fd (gint fd) } /** - * gtk_accel_map_load + * gtk_accel_map_load: * @file_name: a file containing accelerator specifications * * Parses a file previously saved with gtk_accel_map_save() for @@ -613,10 +620,11 @@ accel_map_print (gpointer data, } /** - * gtk_accel_map_save_fd - * @fd: valid writable file descriptor + * gtk_accel_map_save_fd: + * @fd: a valid writable file descriptor * * Filedescriptor variant of gtk_accel_map_save(). + * * Note that the file descriptor will not be closed by this function. */ void @@ -642,7 +650,7 @@ gtk_accel_map_save_fd (gint fd) } /** - * gtk_accel_map_save + * gtk_accel_map_save: * @file_name: the file to contain accelerator specifications * * Saves current accelerator specifications (accelerator path, key @@ -667,13 +675,15 @@ gtk_accel_map_save (const gchar *file_name) } /** - * gtk_accel_map_foreach + * gtk_accel_map_foreach: * @data: data to be passed into @foreach_func - * @foreach_func: function to be executed for each accel map entry + * @foreach_func: function to be executed for each accel map entry which + * is not filtered out * - * Loop over the entries in the accelerator map, and execute - * @foreach_func on each. The signature of @foreach_func is that of - * #GtkAccelMapForeach, the @changed parameter indicates whether + * Loops over the entries in the accelerator map whose accel path + * doesn't match any of the filters added with gtk_accel_map_add_filter(), + * and execute @foreach_func on each. The signature of @foreach_func is + * that of #GtkAccelMapForeach, the @changed parameter indicates whether * this accelerator was changed during runtime (thus, would need * saving during an accelerator map dump). */ @@ -701,6 +711,17 @@ gtk_accel_map_foreach (gpointer data, g_slist_free (entries); } +/** + * gtk_accel_map_foreach_unfiltered: + * @data: data to be passed into @foreach_func + * @foreach_func: function to be executed for each accel map entry + * + * Loops over all entries in the accelerator map, and execute + * @foreach_func on each. The signature of @foreach_func is that of + * #GtkAccelMapForeach, the @changed parameter indicates whether + * this accelerator was changed during runtime (thus, would need + * saving during an accelerator map dump). + */ void gtk_accel_map_foreach_unfiltered (gpointer data, GtkAccelMapForeach foreach_func) @@ -720,6 +741,15 @@ gtk_accel_map_foreach_unfiltered (gpointer data, g_slist_free (entries); } +/** + * gtk_accel_map_add_filter: + * @filter_pattern: a pattern (see #GPatternSpec) + * + * Adds a filter to the global list of accel path filters. + * + * Accel map entries whose accel path matches one of the filters + * are skipped by gtk_accel_map_foreach(). + */ void gtk_accel_map_add_filter (const gchar *filter_pattern) { |