mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
Whitespace fixes
This commit is contained in:
parent
5ed8cf50b8
commit
508a44a0df
@ -176,7 +176,7 @@ gtk_icon_factory_finalize (GObject *object)
|
||||
* themes to override the icons for the application.
|
||||
*
|
||||
* Return value: a new #GtkIconFactory
|
||||
**/
|
||||
*/
|
||||
GtkIconFactory*
|
||||
gtk_icon_factory_new (void)
|
||||
{
|
||||
@ -199,8 +199,7 @@ gtk_icon_factory_new (void)
|
||||
* override your application's default icons. If an icon already
|
||||
* existed in @factory for @stock_id, it is unreferenced and replaced
|
||||
* with the new @icon_set.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_factory_add (GtkIconFactory *factory,
|
||||
const gchar *stock_id,
|
||||
@ -243,7 +242,7 @@ gtk_icon_factory_add (GtkIconFactory *factory,
|
||||
* function directly, so that themes are taken into account.
|
||||
*
|
||||
* Return value: icon set of @stock_id.
|
||||
**/
|
||||
*/
|
||||
GtkIconSet *
|
||||
gtk_icon_factory_lookup (GtkIconFactory *factory,
|
||||
const gchar *stock_id)
|
||||
@ -267,8 +266,7 @@ static GSList *default_factories = NULL;
|
||||
* There will normally be an icon factory added for each library or
|
||||
* application that comes with icons. The default icon factories
|
||||
* can be overridden by themes.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_factory_add_default (GtkIconFactory *factory)
|
||||
{
|
||||
@ -286,8 +284,7 @@ gtk_icon_factory_add_default (GtkIconFactory *factory)
|
||||
* Removes an icon factory from the list of default icon
|
||||
* factories. Not normally used; you might use it for a library that
|
||||
* can be unloaded or shut down.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_factory_remove_default (GtkIconFactory *factory)
|
||||
{
|
||||
@ -319,9 +316,8 @@ _gtk_icon_factory_ensure_default_icons (void)
|
||||
* using this function directly, so that themes are taken into
|
||||
* account.
|
||||
*
|
||||
*
|
||||
* Return value: a #GtkIconSet, or %NULL
|
||||
**/
|
||||
*/
|
||||
GtkIconSet *
|
||||
gtk_icon_factory_lookup_default (const gchar *stock_id)
|
||||
{
|
||||
@ -874,7 +870,6 @@ icon_size_lookup_intern (GtkSettings *settings,
|
||||
{
|
||||
gboolean initial = FALSE;
|
||||
|
||||
settings_sizes = get_settings_sizes (settings, &initial);
|
||||
if (initial)
|
||||
icon_sizes_init_for_settings (settings);
|
||||
|
||||
@ -920,7 +915,7 @@ icon_size_lookup_intern (GtkSettings *settings,
|
||||
* Return value: %TRUE if @size was a valid size
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
*/
|
||||
gboolean
|
||||
gtk_icon_size_lookup_for_settings (GtkSettings *settings,
|
||||
GtkIconSize size,
|
||||
@ -951,7 +946,7 @@ gtk_icon_size_lookup_for_settings (GtkSettings *settings,
|
||||
* the usual size.
|
||||
*
|
||||
* Return value: %TRUE if @size was a valid size
|
||||
**/
|
||||
*/
|
||||
gboolean
|
||||
gtk_icon_size_lookup (GtkIconSize size,
|
||||
gint *widthp,
|
||||
@ -1018,8 +1013,7 @@ icon_size_register_intern (const gchar *name,
|
||||
* etc. Returns the integer value for the size.
|
||||
*
|
||||
* Returns: integer value representing the size
|
||||
*
|
||||
**/
|
||||
*/
|
||||
GtkIconSize
|
||||
gtk_icon_size_register (const gchar *name,
|
||||
gint width,
|
||||
@ -1040,8 +1034,7 @@ gtk_icon_size_register (const gchar *name,
|
||||
* Registers @alias as another name for @target.
|
||||
* So calling gtk_icon_size_from_name() with @alias as argument
|
||||
* will return @target.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_size_register_alias (const gchar *alias,
|
||||
GtkIconSize target)
|
||||
@ -1083,7 +1076,7 @@ gtk_icon_size_register_alias (const gchar *alias,
|
||||
* @returns: the icon size with the given name.
|
||||
*
|
||||
* Looks up the icon size associated with @name.
|
||||
**/
|
||||
*/
|
||||
GtkIconSize
|
||||
gtk_icon_size_from_name (const gchar *name)
|
||||
{
|
||||
@ -1106,7 +1099,7 @@ gtk_icon_size_from_name (const gchar *name)
|
||||
*
|
||||
* Gets the canonical name of the given icon size. The returned string
|
||||
* is statically allocated and should not be freed.
|
||||
**/
|
||||
*/
|
||||
G_CONST_RETURN gchar*
|
||||
gtk_icon_size_get_name (GtkIconSize size)
|
||||
{
|
||||
@ -1176,7 +1169,7 @@ static guint cache_serial = 0;
|
||||
* a #GtkIconFactory.
|
||||
*
|
||||
* Return value: a new #GtkIconSet
|
||||
**/
|
||||
*/
|
||||
GtkIconSet*
|
||||
gtk_icon_set_new (void)
|
||||
{
|
||||
@ -1204,7 +1197,7 @@ gtk_icon_set_new (void)
|
||||
* or make the icon look insensitive/prelighted.
|
||||
*
|
||||
* Return value: a new #GtkIconSet
|
||||
**/
|
||||
*/
|
||||
GtkIconSet *
|
||||
gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf)
|
||||
{
|
||||
@ -1231,7 +1224,7 @@ gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf)
|
||||
* Increments the reference count on @icon_set.
|
||||
*
|
||||
* Return value: @icon_set.
|
||||
**/
|
||||
*/
|
||||
GtkIconSet*
|
||||
gtk_icon_set_ref (GtkIconSet *icon_set)
|
||||
{
|
||||
@ -1249,7 +1242,7 @@ gtk_icon_set_ref (GtkIconSet *icon_set)
|
||||
*
|
||||
* Decrements the reference count on @icon_set, and frees memory
|
||||
* if the reference count reaches 0.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_set_unref (GtkIconSet *icon_set)
|
||||
{
|
||||
@ -1452,8 +1445,7 @@ render_icon_name_pixbuf (GtkIconSource *icon_source,
|
||||
{
|
||||
if (size == (GtkIconSize)-1)
|
||||
{
|
||||
/* Find an available size close to 48
|
||||
*/
|
||||
/* Find an available size close to 48 */
|
||||
sizes = gtk_icon_theme_get_icon_sizes (icon_theme, icon_source->source.icon_name);
|
||||
dist = 1000;
|
||||
width = height = 48;
|
||||
@ -1646,7 +1638,7 @@ render_fallback_image (GtkStyle *style,
|
||||
* image" icon will be returned instead.
|
||||
*
|
||||
* Return value: a #GdkPixbuf to be displayed
|
||||
**/
|
||||
*/
|
||||
GdkPixbuf*
|
||||
gtk_icon_set_render_icon (GtkIconSet *icon_set,
|
||||
GtkStyle *style,
|
||||
@ -1746,8 +1738,7 @@ icon_source_compare (gconstpointer ap, gconstpointer bp)
|
||||
*
|
||||
* gtk_icon_set_new_from_pixbuf() creates a new icon set with a
|
||||
* default icon source based on the given pixbuf.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_set_add_source (GtkIconSet *icon_set,
|
||||
const GtkIconSource *source)
|
||||
@ -1774,8 +1765,7 @@ gtk_icon_set_add_source (GtkIconSet *icon_set,
|
||||
*
|
||||
* Obtains a list of icon sizes this icon set can render. The returned
|
||||
* array must be freed with g_free().
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_set_get_sizes (GtkIconSet *icon_set,
|
||||
GtkIconSize **sizes,
|
||||
@ -1879,7 +1869,7 @@ gtk_icon_set_get_sizes (GtkIconSet *icon_set,
|
||||
* direction, widget state, or icon size.
|
||||
*
|
||||
* Return value: a new #GtkIconSource
|
||||
**/
|
||||
*/
|
||||
GtkIconSource*
|
||||
gtk_icon_source_new (void)
|
||||
{
|
||||
@ -1905,7 +1895,7 @@ gtk_icon_source_new (void)
|
||||
* Creates a copy of @source; mostly useful for language bindings.
|
||||
*
|
||||
* Return value: a new #GtkIconSource
|
||||
**/
|
||||
*/
|
||||
GtkIconSource*
|
||||
gtk_icon_source_copy (const GtkIconSource *source)
|
||||
{
|
||||
@ -1949,7 +1939,7 @@ gtk_icon_source_copy (const GtkIconSource *source)
|
||||
*
|
||||
* Frees a dynamically-allocated icon source, along with its
|
||||
* filename, size, and pixbuf fields if those are not %NULL.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_free (GtkIconSource *source)
|
||||
{
|
||||
@ -2014,7 +2004,7 @@ icon_source_clear (GtkIconSource *source)
|
||||
*
|
||||
* Sets the name of an image file to use as a base image when creating
|
||||
* icon variants for #GtkIconSet. The filename must be absolute.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_filename (GtkIconSource *source,
|
||||
const gchar *filename)
|
||||
@ -2045,7 +2035,7 @@ gtk_icon_source_set_filename (GtkIconSource *source,
|
||||
*
|
||||
* Sets the name of an icon to look up in the current icon theme
|
||||
* to use as a base image when creating icon variants for #GtkIconSet.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_icon_name (GtkIconSource *source,
|
||||
const gchar *icon_name)
|
||||
@ -2072,7 +2062,7 @@ gtk_icon_source_set_icon_name (GtkIconSource *source,
|
||||
*
|
||||
* Sets a pixbuf to use as a base image when creating icon variants
|
||||
* for #GtkIconSet.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_pixbuf (GtkIconSource *source,
|
||||
GdkPixbuf *pixbuf)
|
||||
@ -2103,7 +2093,7 @@ gtk_icon_source_set_pixbuf (GtkIconSource *source,
|
||||
*
|
||||
* Return value: image filename. This string must not be modified
|
||||
* or freed.
|
||||
**/
|
||||
*/
|
||||
G_CONST_RETURN gchar*
|
||||
gtk_icon_source_get_filename (const GtkIconSource *source)
|
||||
{
|
||||
@ -2124,7 +2114,7 @@ gtk_icon_source_get_filename (const GtkIconSource *source)
|
||||
* persist beyond the lifetime of the icon source.
|
||||
*
|
||||
* Return value: icon name. This string must not be modified or freed.
|
||||
**/
|
||||
*/
|
||||
G_CONST_RETURN gchar*
|
||||
gtk_icon_source_get_icon_name (const GtkIconSource *source)
|
||||
{
|
||||
@ -2150,7 +2140,7 @@ gtk_icon_source_get_icon_name (const GtkIconSource *source)
|
||||
* not incremented.
|
||||
*
|
||||
* Return value: source pixbuf
|
||||
**/
|
||||
*/
|
||||
GdkPixbuf*
|
||||
gtk_icon_source_get_pixbuf (const GtkIconSource *source)
|
||||
{
|
||||
@ -2178,8 +2168,7 @@ gtk_icon_source_get_pixbuf (const GtkIconSource *source)
|
||||
*
|
||||
* #GtkIconSet prefers non-wildcarded sources (exact matches) over
|
||||
* wildcarded sources, and will use an exact match when possible.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_direction_wildcarded (GtkIconSource *source,
|
||||
gboolean setting)
|
||||
@ -2207,7 +2196,7 @@ gtk_icon_source_set_direction_wildcarded (GtkIconSource *source,
|
||||
* produce an appropriate icon for a given state, for example
|
||||
* lightening an image on prelight, but will not modify source images
|
||||
* that match exactly.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_state_wildcarded (GtkIconSource *source,
|
||||
gboolean setting)
|
||||
@ -2235,7 +2224,7 @@ gtk_icon_source_set_state_wildcarded (GtkIconSource *source,
|
||||
* #GtkIconSet will normally scale wildcarded source images to produce
|
||||
* an appropriate icon at a given size, but will not change the size
|
||||
* of source images that match exactly.
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_size_wildcarded (GtkIconSource *source,
|
||||
gboolean setting)
|
||||
@ -2252,7 +2241,7 @@ gtk_icon_source_set_size_wildcarded (GtkIconSource *source,
|
||||
* Gets the value set by gtk_icon_source_set_size_wildcarded().
|
||||
*
|
||||
* Return value: %TRUE if this icon source is a base for any icon size variant
|
||||
**/
|
||||
*/
|
||||
gboolean
|
||||
gtk_icon_source_get_size_wildcarded (const GtkIconSource *source)
|
||||
{
|
||||
@ -2268,7 +2257,7 @@ gtk_icon_source_get_size_wildcarded (const GtkIconSource *source)
|
||||
* Gets the value set by gtk_icon_source_set_state_wildcarded().
|
||||
*
|
||||
* Return value: %TRUE if this icon source is a base for any widget state variant
|
||||
**/
|
||||
*/
|
||||
gboolean
|
||||
gtk_icon_source_get_state_wildcarded (const GtkIconSource *source)
|
||||
{
|
||||
@ -2284,7 +2273,7 @@ gtk_icon_source_get_state_wildcarded (const GtkIconSource *source)
|
||||
* Gets the value set by gtk_icon_source_set_direction_wildcarded().
|
||||
*
|
||||
* Return value: %TRUE if this icon source is a base for any text direction variant
|
||||
**/
|
||||
*/
|
||||
gboolean
|
||||
gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source)
|
||||
{
|
||||
@ -2305,8 +2294,7 @@ gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source)
|
||||
* if the text direction is wildcarded. Therefore, you should usually
|
||||
* call gtk_icon_source_set_direction_wildcarded() to un-wildcard it
|
||||
* in addition to calling this function.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_direction (GtkIconSource *source,
|
||||
GtkTextDirection direction)
|
||||
@ -2328,8 +2316,7 @@ gtk_icon_source_set_direction (GtkIconSource *source,
|
||||
* if the state is wildcarded. Therefore, you should usually
|
||||
* call gtk_icon_source_set_state_wildcarded() to un-wildcard it
|
||||
* in addition to calling this function.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_state (GtkIconSource *source,
|
||||
GtkStateType state)
|
||||
@ -2351,8 +2338,7 @@ gtk_icon_source_set_state (GtkIconSource *source,
|
||||
* if the size is wildcarded. Therefore, you should usually
|
||||
* call gtk_icon_source_set_size_wildcarded() to un-wildcard it
|
||||
* in addition to calling this function.
|
||||
*
|
||||
**/
|
||||
*/
|
||||
void
|
||||
gtk_icon_source_set_size (GtkIconSource *source,
|
||||
GtkIconSize size)
|
||||
@ -2371,7 +2357,7 @@ gtk_icon_source_set_size (GtkIconSource *source,
|
||||
* wildcarded.
|
||||
*
|
||||
* Return value: text direction this source matches
|
||||
**/
|
||||
*/
|
||||
GtkTextDirection
|
||||
gtk_icon_source_get_direction (const GtkIconSource *source)
|
||||
{
|
||||
@ -2389,7 +2375,7 @@ gtk_icon_source_get_direction (const GtkIconSource *source)
|
||||
* wildcarded.
|
||||
*
|
||||
* Return value: widget state this source matches
|
||||
**/
|
||||
*/
|
||||
GtkStateType
|
||||
gtk_icon_source_get_state (const GtkIconSource *source)
|
||||
{
|
||||
@ -2406,7 +2392,7 @@ gtk_icon_source_get_state (const GtkIconSource *source)
|
||||
* is only useful/meaningful if the icon size is <emphasis>not</emphasis> wildcarded.
|
||||
*
|
||||
* Return value: icon size this source matches.
|
||||
**/
|
||||
*/
|
||||
GtkIconSize
|
||||
gtk_icon_source_get_size (const GtkIconSource *source)
|
||||
{
|
||||
@ -2703,7 +2689,7 @@ _gtk_icon_set_invalidate_caches (void)
|
||||
* The list itself should be freed.
|
||||
*
|
||||
* Return value: List of ids in icon factories
|
||||
**/
|
||||
*/
|
||||
GList*
|
||||
_gtk_icon_factory_list_ids (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user