diff options
author | Havoc Pennington <hp@redhat.com> | 2000-09-30 00:17:22 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-09-30 00:17:22 +0000 |
commit | 244996ffec3b76c4cbef2e9684c0557ffed7e8fa (patch) | |
tree | 01acf82d5b49070fe08ad77e7b140d21c4465797 /gtk/gtktextiter.c | |
parent | 0415b69e76b5d2d3bb8adecb6cf19974281b597c (diff) | |
download | gtk+-244996ffec3b76c4cbef2e9684c0557ffed7e8fa.tar.gz |
fix indentation
2000-09-29 Havoc Pennington <hp@redhat.com>
* gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
* gtk/gtktextview.c: Implement drag thresholding; change functions
that set border window size to have nicer name
(gtk_text_view_mark_set_handler): Fix this to have the
right signature.
* gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
* gtk/testtext.c: Update with API changes, put line numbers on
both sides.
* gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
with this
* gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
pixbuf; delete a big block of #if 0 Tk code
* gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
insert_pixmap with insert_pixbuf
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r-- | gtk/gtktextiter.c | 42 |
1 files changed, 11 insertions, 31 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index a0d5af31c4..cad7b9cf5a 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -794,34 +794,21 @@ gtk_text_iter_get_visible_text (const GtkTextIter *start, } /** - * gtk_text_iter_get_pixmap: + * gtk_text_iter_get_pixbuf: * @iter: an iterator - * @pixmap: return location for the pixmap - * @mask: return location for the mask - * - * If the location pointed to by @iter contains a pixmap, the pixmap - * is placed in @pixmap, the mask is placed in @mask, and - * gtk_text_iter_get_pixmap() returns TRUE. If @iter points at - * something else, FALSE will be returned and @pixmap/@mask will - * remain unchanged. The pixmap and mask do not have their reference - * count incremented. If the pixmap has no mask, NULL is returned for - * the mask. - * - * Return value: whether the iterator pointed at a pixmap + * + * If the location pointed to by @iter contains a pixbuf, the pixbuf + * is returned (with no new reference count added). Otherwise, + * NULL is returned. + * + * Return value: the pixbuf at @iter **/ -gboolean -gtk_text_iter_get_pixmap (const GtkTextIter *iter, - GdkPixmap** pixmap, - GdkBitmap** mask) +GdkPixbuf* +gtk_text_iter_get_pixbuf (const GtkTextIter *iter) { GtkTextRealIter *real; g_return_val_if_fail(iter != NULL, FALSE); - g_return_val_if_fail(pixmap != NULL, FALSE); - g_return_val_if_fail(mask != NULL, FALSE); - - *pixmap = NULL; - *mask = NULL; real = gtk_text_iter_make_real(iter); @@ -830,17 +817,10 @@ gtk_text_iter_get_pixmap (const GtkTextIter *iter, check_invariants(iter); - if (real->segment->type != >k_text_pixmap_type) + if (real->segment->type != >k_text_pixbuf_type) return FALSE; else - { - if (pixmap) - *pixmap = real->segment->body.pixmap.pixmap; - if (mask) - *mask = real->segment->body.pixmap.pixmap; - - return TRUE; - } + return real->segment->body.pixbuf.pixbuf; } /** |