gtksourceview r2259 - in branches/gtksourcecompletion: . gtksourceview
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2259 - in branches/gtksourcecompletion: . gtksourceview
- Date: Fri, 10 Apr 2009 22:15:33 +0000 (UTC)
Author: icq
Date: Fri Apr 10 22:15:32 2009
New Revision: 2259
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2259&view=rev
Log:
2009-04-11 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/gtksourcecompletion.c:
* gtksourceview/gtksourcecompletion.h:
Add completion_finish func.
Modified:
branches/gtksourcecompletion/ChangeLog
branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h
Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c Fri Apr 10 22:15:32 2009
@@ -1773,6 +1773,23 @@
}
/**
+ * gtk_source_completion_finish:
+ * @self: a #GtkSourceCompletion
+ *
+ * Finishes the completion if it is active (visible).
+ */
+void
+gtk_source_completion_finish (GtkSourceCompletion *self)
+{
+ g_return_if_fail (GTK_IS_SOURCE_COMPLETION (self));
+
+ if (GTK_WIDGET_VISIBLE (self))
+ {
+ end_completion (self);
+ }
+}
+
+/**
* gtk_source_completion_filter_proposals:
* @self: the #GtkSourceCompletion
* @func: function to filter the proposals visibility
Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h Fri Apr 10 22:15:32 2009
@@ -102,6 +102,8 @@
GtkSourceCompletionTrigger
*gtk_source_completion_get_active_trigger (GtkSourceCompletion *self);
+void gtk_source_completion_finish (GtkSourceCompletion *self);
+
void gtk_source_completion_filter_proposals (GtkSourceCompletion *self,
GtkSourceCompletionFilterFunc func,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]