summaryrefslogtreecommitdiff
path: root/pango/pango-item.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 20:07:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 20:07:35 +0000
commit80e647a8dbc97662b9d966c0f7a8e1aedea89eed (patch)
treed3a322c28112b7623765847aa32e8e319c576b45 /pango/pango-item.c
parente6b83e4264b4ad2ab73a3239d902b4064c75634d (diff)
downloadpango-80e647a8dbc97662b9d966c0f7a8e1aedea89eed.tar.gz
*.c, *.h: Drop trailing whitespace.
2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
Diffstat (limited to 'pango/pango-item.c')
-rw-r--r--pango/pango-item.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/pango/pango-item.c b/pango/pango-item.c
index 54d0f52e..4abe6337 100644
--- a/pango/pango-item.c
+++ b/pango/pango-item.c
@@ -26,9 +26,9 @@
/**
* pango_item_new:
- *
+ *
* Creates a new #PangoItem structure initialized to default values.
- *
+ *
* Return value: the newly allocated #PangoItem, which should
* be freed with pango_item_free().
**/
@@ -43,9 +43,9 @@ pango_item_new (void)
/**
* pango_item_copy:
* @item: a #PangoItem
- *
+ *
* Copy an existing #PangoItem structure.
- *
+ *
* Return value: the newly allocated #PangoItem, which should
* be freed with pango_item_free().
**/
@@ -62,7 +62,7 @@ pango_item_copy (PangoItem *item)
result->analysis = item->analysis;
if (result->analysis.font)
g_object_ref (result->analysis.font);
-
+
extra_attrs = NULL;
tmp_list = item->analysis.extra_attrs;
while (tmp_list)
@@ -79,7 +79,7 @@ pango_item_copy (PangoItem *item)
/**
* pango_item_free:
* @item: a #PangoItem
- *
+ *
* Free a #PangoItem and all associated memory.
**/
void
@@ -101,7 +101,7 @@ GType
pango_item_get_type (void)
{
static GType our_type = 0;
-
+
if (our_type == 0)
our_type = g_boxed_type_register_static (I_("PangoItem"),
(GBoxedCopyFunc) pango_item_copy,
@@ -114,7 +114,7 @@ pango_item_get_type (void)
* @orig: a #PangoItem
* @split_index: byte index of position to split item, relative to the start of the item
* @split_offset: number of chars between start of @orig and @split_index
- *
+ *
* Modifies @orig to cover only the text after @split_index, and
* returns a new item that covers the text before @split_index that
* used to be in @orig. You can think of @split_index as the length of
@@ -125,7 +125,7 @@ pango_item_get_type (void)
* chars, and must be provided because the text used to generate the
* item isn't available, so pango_item_split() can't count the char
* length of the split items itself.
- *
+ *
* Return value: new item representing text before @split_index, which
* should be freed with pango_item_free().
**/
@@ -142,14 +142,14 @@ pango_item_split (PangoItem *orig,
g_return_val_if_fail (split_index < orig->length, NULL);
g_return_val_if_fail (split_offset > 0, NULL);
g_return_val_if_fail (split_offset < orig->num_chars, NULL);
-
+
new_item = pango_item_copy (orig);
new_item->length = split_index;
new_item->num_chars = split_offset;
-
+
orig->offset += split_index;
orig->length -= split_index;
orig->num_chars -= split_offset;
-
+
return new_item;
}