[gtksourceview/wip/word-completion: 1/3] CompletionWords buffer: use is_text_region_empty()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/word-completion: 1/3] CompletionWords buffer: use is_text_region_empty()
- Date: Mon, 10 Jun 2013 10:33:40 +0000 (UTC)
commit e73829f015451ad584676935d4e693983287f7a8
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 10 11:46:36 2013 +0200
CompletionWords buffer: use is_text_region_empty()
.../words/gtksourcecompletionwordsbuffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index be6ac0e..aaa51a7 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -671,7 +671,7 @@ on_library_lock (GtkSourceCompletionWordsBuffer *buffer)
static void
on_library_unlock (GtkSourceCompletionWordsBuffer *buffer)
{
- if (gtk_text_region_subregions (buffer->priv->scan_region) > 0)
+ if (!is_text_region_empty (buffer->priv->scan_region))
{
install_initiate_scan (buffer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]