[gimp] app: cosmetic cleanup for readability
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: cosmetic cleanup for readability
- Date: Wed, 3 Mar 2010 20:25:27 +0000 (UTC)
commit 9431376f55ec8dc22f16969434c49cc579902e6e
Author: Michael Natterer <mitch gimp org>
Date: Wed Mar 3 10:53:01 2010 +0100
app: cosmetic cleanup for readability
app/widgets/gimptextbuffer.c | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/app/widgets/gimptextbuffer.c b/app/widgets/gimptextbuffer.c
index 2979ccf..6b9f38e 100644
--- a/app/widgets/gimptextbuffer.c
+++ b/app/widgets/gimptextbuffer.c
@@ -226,11 +226,13 @@ gimp_text_buffer_set_markup (GimpTextBuffer *buffer,
if (markup)
{
- GtkTextBuffer *content;
- GtkTextIter insert;
- GError *error = NULL;
+ GtkTextTagTable *tag_table;
+ GtkTextBuffer *content;
+ GtkTextIter insert;
+ GError *error = NULL;
- content = gtk_text_buffer_new (gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (buffer)));
+ tag_table = gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (buffer));
+ content = gtk_text_buffer_new (tag_table);
gtk_text_buffer_get_start_iter (content, &insert);
@@ -266,15 +268,17 @@ gimp_text_buffer_set_markup (GimpTextBuffer *buffer,
gchar *
gimp_text_buffer_get_markup (GimpTextBuffer *buffer)
{
- GtkTextBuffer *content;
- GtkTextIter insert;
- GtkTextIter start, end;
- gchar *markup;
- gsize length;
+ GtkTextTagTable *tag_table;
+ GtkTextBuffer *content;
+ GtkTextIter insert;
+ GtkTextIter start, end;
+ gchar *markup;
+ gsize length;
g_return_val_if_fail (GIMP_IS_TEXT_BUFFER (buffer), NULL);
- content = gtk_text_buffer_new (gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (buffer)));
+ tag_table = gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (buffer));
+ content = gtk_text_buffer_new (tag_table);
gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (buffer), &start, &end);
gtk_text_buffer_get_start_iter (content, &insert);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]