gtksourceview r2246 - in branches/gtksourcecompletion: . gtksourceview
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2246 - in branches/gtksourcecompletion: . gtksourceview
- Date: Wed, 8 Apr 2009 16:46:24 +0000 (UTC)
Author: icq
Date: Wed Apr 8 16:46:24 2009
New Revision: 2246
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2246&view=rev
Log:
2009-04-08 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/gtksourceview.c:
Load GtkSourceCompletion only when requested.
Modified:
branches/gtksourcecompletion/ChangeLog
branches/gtksourcecompletion/gtksourceview/gtksourceview.c
Modified: branches/gtksourcecompletion/gtksourceview/gtksourceview.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourceview.c (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourceview.c Wed Apr 8 16:46:24 2009
@@ -714,7 +714,7 @@
view->priv->smart_home_end = GTK_SOURCE_SMART_HOME_END_DISABLED;
view->priv->right_margin_pos = DEFAULT_RIGHT_MARGIN_POSITION;
view->priv->cached_right_margin_pos = -1;
- view->priv->completion = _gtk_source_completion_new (GTK_TEXT_VIEW (view));
+ view->priv->completion = NULL;
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (view), 2);
gtk_text_view_set_right_margin (GTK_TEXT_VIEW (view), 2);
@@ -4003,5 +4003,10 @@
{
g_return_val_if_fail (GTK_IS_SOURCE_VIEW (view), NULL);
+ if (view->priv->completion == NULL)
+ {
+ view->priv->completion = _gtk_source_completion_new (GTK_TEXT_VIEW (view));
+ }
+
return view->priv->completion;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]