[gtk+] Tiny cleanup.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Tiny cleanup.
- Date: Thu, 1 Dec 2011 00:19:56 +0000 (UTC)
commit b3f850e6b9b12143b3286e129cbe17ca60351d7d
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Nov 26 21:09:25 2011 +0100
Tiny cleanup.
https://bugzilla.gnome.org/show_bug.cgi?id=640317
gtk/gtktextdisplay.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index 6c2eddf..360f515 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -825,7 +825,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
GSList *cursor_list;
GtkTextRenderer *text_renderer;
GtkTextIter selection_start, selection_end;
- gboolean have_selection = FALSE;
+ gboolean have_selection;
GSList *line_list;
GSList *tmp_list;
GList *tmp_widgets;
@@ -852,10 +852,9 @@ gtk_text_layout_draw (GtkTextLayout *layout,
gtk_text_layout_wrap_loop_start (layout);
- if (gtk_text_buffer_get_selection_bounds (layout->buffer,
- &selection_start,
- &selection_end))
- have_selection = TRUE;
+ have_selection = gtk_text_buffer_get_selection_bounds (layout->buffer,
+ &selection_start,
+ &selection_end);
tmp_list = line_list;
while (tmp_list != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]