Doc fixes

https://bugzilla.gnome.org/show_bug.cgi?id=663277
This commit is contained in:
Jasper St. Pierre 2011-11-02 12:24:49 -04:00
parent 703d2ead33
commit 628e59894b
19 changed files with 41 additions and 36 deletions

View File

@ -58,7 +58,7 @@ EXTRA_HFILES=
# Header files or dirs to ignore when scanning. Use base file/dir names # Header files or dirs to ignore when scanning. Use base file/dir names
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
IGNORE_HFILES=calendar-server gvs hotplug-sniffer st tray IGNORE_HFILES=calendar-server gvc hotplug-sniffer st tray
# Images to copy into HTML directory. # Images to copy into HTML directory.
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png # e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png

View File

@ -96,7 +96,7 @@ shell_dbus_init (gboolean replace)
guint32 request_name_flags; guint32 request_name_flags;
guint32 request_name_result; guint32 request_name_result;
/** TODO: /* TODO:
* In the future we should use GDBus for this. However, in * In the future we should use GDBus for this. However, in
* order to do that, we need to port all of the JavaScript * order to do that, we need to port all of the JavaScript
* code. Otherwise, the name will be claimed on the wrong * code. Otherwise, the name will be claimed on the wrong

View File

@ -1220,12 +1220,13 @@ shell_app_init_search_data (ShellApp *app)
/** /**
* shell_app_compare_by_name: * shell_app_compare_by_name:
* @app: * @app: One app
* @other: * @other: The other app
* *
* Order two applications by name. * Order two applications by name.
* *
* Returns: -1, 0, or 1; suitable for use as a comparison function for e.g. g_slist_sort() * Returns: -1, 0, or 1; suitable for use as a comparison function
* for e.g. g_slist_sort()
*/ */
int int
shell_app_compare_by_name (ShellApp *app, ShellApp *other) shell_app_compare_by_name (ShellApp *app, ShellApp *other)

View File

@ -52,16 +52,17 @@ shell_doc_system_get_all (ShellDocSystem *self)
} }
/** /**
* @self: A #ShellDocSystem * shell_doc_system_lookup_by_uri:
* @uri: Url * @system: A #ShellDocSystem
* @uri: URI
* *
* Returns: (transfer none): Recent file info corresponding to given @uri * Returns: (transfer none): Recent file info corresponding to given @uri
*/ */
GtkRecentInfo * GtkRecentInfo *
shell_doc_system_lookup_by_uri (ShellDocSystem *self, shell_doc_system_lookup_by_uri (ShellDocSystem *system,
const char *uri) const char *uri)
{ {
return g_hash_table_lookup (self->priv->infos_by_uri, uri); return g_hash_table_lookup (system->priv->infos_by_uri, uri);
} }
static gboolean static gboolean

View File

@ -857,7 +857,7 @@ _shell_global_get_gjs_context (ShellGlobal *global)
* overview mode or the "looking glass" debug overlay, that block * overview mode or the "looking glass" debug overlay, that block
* application and normal key shortcuts. * application and normal key shortcuts.
* *
* Returns value: %TRUE if we succesfully entered the mode. %FALSE if we couldn't * Returns: %TRUE if we succesfully entered the mode. %FALSE if we couldn't
* enter the mode. Failure may occur because an application has the pointer * enter the mode. Failure may occur because an application has the pointer
* or keyboard grabbed, because Mutter is in a mode itself like moving a * or keyboard grabbed, because Mutter is in a mode itself like moving a
* window or alt-Tab window selection, or because shell_global_begin_modal() * window or alt-Tab window selection, or because shell_global_begin_modal()
@ -1964,7 +1964,7 @@ shell_global_screenshot_window (ShellGlobal *global,
* will enable a login dialog and run in a more confined * will enable a login dialog and run in a more confined
* way. This type is suitable for the display manager. * way. This type is suitable for the display manager.
* *
* Returns the type of session gnome-shell is providing. * Returns: the type of session gnome-shell is providing.
*/ */
ShellSessionType ShellSessionType
shell_global_get_session_type (ShellGlobal *global) shell_global_get_session_type (ShellGlobal *global)

View File

@ -619,9 +619,9 @@ static const GMarkupParser mobile_parser = {
* @out_ccs: (out) (allow-none): (element-type utf8 utf8): a #GHashTable containing * @out_ccs: (out) (allow-none): (element-type utf8 utf8): a #GHashTable containing
* country codes * country codes
* *
* Returns: (element-type utf8 GList<Shell.MobileProvider>) (transfer container): a * Returns: (element-type utf8 GList) (transfer container): a
* hash table where keys are country names 'char *', values are a 'GSList *' * hash table where keys are country names #gchar, values are a #GSList
* of 'ShellMobileProvider *'. Everything is destroyed with g_hash_table_destroy (). * of #ShellMobileProvider. Everything is destroyed with g_hash_table_destroy().
*/ */
GHashTable * GHashTable *
shell_mobile_providers_parse (GHashTable **out_ccs) shell_mobile_providers_parse (GHashTable **out_ccs)

View File

@ -590,7 +590,7 @@ shell_perf_log_update_statistic_x (ShellPerfLog *perf_log,
} }
/** /**
* shell_perf_log_add statistics_callback: * shell_perf_log_add_statistics_callback:
* @perf_log: a #ShellPerfLog * @perf_log: a #ShellPerfLog
* @callback: function to call before recording statistics * @callback: function to call before recording statistics
* @user_data: data to pass to @callback * @user_data: data to pass to @callback

View File

@ -282,6 +282,7 @@ plugin_init (GstPlugin *plugin)
/** /**
* shell_recorder_src_register: * shell_recorder_src_register:
*
* Registers a plugin holding our single element to use privately in * Registers a plugin holding our single element to use privately in
* this application. Can safely be called multiple times. * this application. Can safely be called multiple times.
*/ */

View File

@ -7,8 +7,8 @@
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* SECTION:ShellRecorder * SECTION:shell-recorder
* short_description: Record from a #ClutterStage * @short_description: Record from a #ClutterStage
* *
* The #ShellRecorder object is used to make recordings ("screencasts") * The #ShellRecorder object is used to make recordings ("screencasts")
* of a #ClutterStage. Recording is done via #GStreamer. The default is * of a #ClutterStage. Recording is done via #GStreamer. The default is

View File

@ -639,7 +639,7 @@ shell_window_tracker_get_window_app (ShellWindowTracker *tracker,
/** /**
* shell_window_tracker_get_app_from_pid: * shell_window_tracker_get_app_from_pid:
* @self; A #ShellAppSystem * @tracker: A #ShellAppSystem
* @pid: A Unix process identifier * @pid: A Unix process identifier
* *
* Look up the application corresponding to a process. * Look up the application corresponding to a process.
@ -647,7 +647,7 @@ shell_window_tracker_get_window_app (ShellWindowTracker *tracker,
* Returns: (transfer none): A #ShellApp, or %NULL if none * Returns: (transfer none): A #ShellApp, or %NULL if none
*/ */
ShellApp * ShellApp *
shell_window_tracker_get_app_from_pid (ShellWindowTracker *self, shell_window_tracker_get_app_from_pid (ShellWindowTracker *tracker,
int pid) int pid)
{ {
GSList *running = shell_app_system_get_running (shell_app_system_get_default()); GSList *running = shell_app_system_get_running (shell_app_system_get_default());

View File

@ -8,8 +8,8 @@
#include <X11/extensions/Xfixes.h> #include <X11/extensions/Xfixes.h>
/** /**
* SECTION:ShellXFixesCursor * SECTION:shell-xfixes-cursor
* short_description: Capture/manipulate system mouse cursor. * @short_description: Capture/manipulate system mouse cursor.
* *
* The #ShellXFixesCursor object uses the XFixes extension to show/hide the * The #ShellXFixesCursor object uses the XFixes extension to show/hide the
* the system mouse pointer, to grab its image as it changes, and emit a * the system mouse pointer, to grab its image as it changes, and emit a

View File

@ -20,7 +20,7 @@
/** /**
* SECTION:st-group * SECTION:st-group
* SECTION:clutter-group * @see_also:#ClutterGroup
* @short_description: A fixed layout container * @short_description: A fixed layout container
* *
* A #StGroup is an Actor which contains multiple child actors positioned * A #StGroup is an Actor which contains multiple child actors positioned

View File

@ -25,7 +25,7 @@
*/ */
/** /**
* SECTION:StIMText * SECTION:st-im-text
* @short_description: Text widget with input method support * @short_description: Text widget with input method support
* @stability: Unstable * @stability: Unstable
* @see_also: #ClutterText * @see_also: #ClutterText

View File

@ -963,7 +963,7 @@ st_scroll_view_new (void)
* *
* Gets the horizontal scrollbar of the scrollbiew * Gets the horizontal scrollbar of the scrollbiew
* *
* Return value: (transfer none): the horizontal #StScrollbar * Return value: (transfer none): the horizontal #StScrollBar
*/ */
ClutterActor * ClutterActor *
st_scroll_view_get_hscroll_bar (StScrollView *scroll) st_scroll_view_get_hscroll_bar (StScrollView *scroll)
@ -979,7 +979,7 @@ st_scroll_view_get_hscroll_bar (StScrollView *scroll)
* *
* Gets the vertical scrollbar of the scrollbiew * Gets the vertical scrollbar of the scrollbiew
* *
* Return value: (transfer none): the vertical #StScrollbar * Return value: (transfer none): the vertical #StScrollBar
*/ */
ClutterActor * ClutterActor *
st_scroll_view_get_vscroll_bar (StScrollView *scroll) st_scroll_view_get_vscroll_bar (StScrollView *scroll)

View File

@ -29,7 +29,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* SECTION:StThemeContext * SECTION:st-theme-context
* @short_description: holds global information about a tree of styled objects * @short_description: holds global information about a tree of styled objects
* *
* #StThemeContext is responsible for managing information global to a tree of styled objects, * #StThemeContext is responsible for managing information global to a tree of styled objects,

View File

@ -1476,7 +1476,7 @@ st_theme_node_get_outline_width (StThemeNode *node)
* @node: a #StThemeNode * @node: a #StThemeNode
* @color: (out caller-allocates): location to store the color * @color: (out caller-allocates): location to store the color
* *
* Returns the color of @node's outline. * Gets the color of @node's outline.
*/ */
void void
st_theme_node_get_outline_color (StThemeNode *node, st_theme_node_get_outline_color (StThemeNode *node,
@ -1745,7 +1745,7 @@ _st_theme_node_ensure_background (StThemeNode *node)
* @node: a #StThemeNode * @node: a #StThemeNode
* @color: (out caller-allocates): location to store the color * @color: (out caller-allocates): location to store the color
* *
* Returns @node's background color. * Gets @node's background color.
*/ */
void void
st_theme_node_get_background_color (StThemeNode *node, st_theme_node_get_background_color (StThemeNode *node,
@ -1773,7 +1773,7 @@ st_theme_node_get_background_image (StThemeNode *node)
* @node: a #StThemeNode * @node: a #StThemeNode
* @color: (out caller-allocates): location to store the color * @color: (out caller-allocates): location to store the color
* *
* Returns @node's foreground color. * Gets @node's foreground color.
*/ */
void void
st_theme_node_get_foreground_color (StThemeNode *node, st_theme_node_get_foreground_color (StThemeNode *node,
@ -1847,7 +1847,7 @@ st_theme_node_get_background_gradient (StThemeNode *node,
* @side: a #StSide * @side: a #StSide
* @color: (out caller-allocates): location to store the color * @color: (out caller-allocates): location to store the color
* *
* Returns the color of @node's border on @side * Gets the color of @node's border on @side
*/ */
void void
st_theme_node_get_border_color (StThemeNode *node, st_theme_node_get_border_color (StThemeNode *node,

View File

@ -31,7 +31,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* SECTION:StThemeNode * SECTION:st-theme-node
* @short_description: style information for one node in a tree of themed objects * @short_description: style information for one node in a tree of themed objects
* *
* A #StThemeNode represents the CSS style information (the set of CSS properties) for one * A #StThemeNode represents the CSS style information (the set of CSS properties) for one

View File

@ -491,10 +491,12 @@ pseudo_class_add_sel_matches_style (StTheme *a_this,
} }
/** /**
*@param a_add_sel the class additional selector to consider. * class_add_sel_matches_style:
*@param a_node the style node to consider. * @a_add_sel: The class additional selector to consider.
*@return TRUE if the class additional selector matches * @a_node: The style node to consider.
*the style node given in argument, FALSE otherwise. *
* Returns: %TRUE if the class additional selector matches
* the style node given in argument, %FALSE otherwise.
*/ */
static gboolean static gboolean
class_add_sel_matches_style (CRAdditionalSel *a_add_sel, class_add_sel_matches_style (CRAdditionalSel *a_add_sel,

View File

@ -27,7 +27,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* SECTION:StTheme * SECTION:st-theme
* @short_description: a set of stylesheets * @short_description: a set of stylesheets
* *
* #StTheme holds a set of stylesheets. (The "cascade" of the name * #StTheme holds a set of stylesheets. (The "cascade" of the name