gtksourceview r2257 - in branches/gtksourcecompletion: . gtksourceview tests



Author: icq
Date: Fri Apr 10 21:56:07 2009
New Revision: 2257
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2257&view=rev

Log:
2009-04-10  Ignacio Casal Quinteiro  <nacho resa gmail com>

        * gtksourceview/gtksourcecompletion.c:
        * gtksourceview/gtksourcecompletionprovider.c:
        * gtksourceview/gtksourcecompletionprovider.h:
        * tests/gsc-provider-test.c:
        Removed gtk_source_completion_provider_finish.



Modified:
   branches/gtksourcecompletion/ChangeLog
   branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
   branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.c
   branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.h
   branches/gtksourcecompletion/tests/gsc-provider-test.c

Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c	(original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c	Fri Apr 10 21:56:07 2009
@@ -481,15 +481,6 @@
 	}
 	else
 	{
-		GList *l;
-		
-		for (l = self->priv->prov_trig; l != NULL; l = g_list_next (l))
-		{
-			PTPair *ptp = (PTPair *)l->data;
-			if (ptp->trigger == self->priv->active_trigger)
-				gtk_source_completion_provider_finish (GTK_SOURCE_COMPLETION_PROVIDER (ptp->provider));
-		}
-		
 		self->priv->active_trigger = NULL;
 	}
 }

Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.c	(original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.c	Fri Apr 10 21:56:07 2009
@@ -82,27 +82,6 @@
 	g_return_val_if_reached (NULL);
 }
 
-/**
- * gtk_source_completion_provider_finish:
- * @self: The #GtkSourceCompletionProvider
- *
- * The completion call this function when it is going to hide the popup (The 
- * user selects a proposal or hide the completion popup)
- */
-void
-gtk_source_completion_provider_finish (GtkSourceCompletionProvider* self)
-{
-	g_return_if_fail (GTK_IS_SOURCE_COMPLETION_PROVIDER (self));
-	GTK_SOURCE_COMPLETION_PROVIDER_GET_INTERFACE (self)->finish (self);
-}
-
-/* Default implementation */
-static void
-gtk_source_completion_provider_finish_default (GtkSourceCompletionProvider *self)
-{
-	g_return_if_reached ();
-}
-
 static void 
 gtk_source_completion_provider_base_init (GtkSourceCompletionProviderIface * iface)
 {
@@ -110,7 +89,6 @@
 	
 	iface->get_name = gtk_source_completion_provider_get_name_default;
 	iface->get_proposals = gtk_source_completion_provider_get_proposals_default;
-	iface->finish = gtk_source_completion_provider_finish_default;
 	
 	if (!initialized) {
 		initialized = TRUE;

Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.h
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.h	(original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletionprovider.h	Fri Apr 10 21:56:07 2009
@@ -47,7 +47,6 @@
 	const gchar* (*get_name)       (GtkSourceCompletionProvider *self);
 	GList*       (*get_proposals)  (GtkSourceCompletionProvider *self,
 				        GtkSourceCompletionTrigger *trigger);
-	void         (*finish)         (GtkSourceCompletionProvider *self);
 };
 
 GType		 gtk_source_completion_provider_get_type	(void);
@@ -57,8 +56,6 @@
 
 GList		*gtk_source_completion_provider_get_proposals	(GtkSourceCompletionProvider *self, 
 								 GtkSourceCompletionTrigger  *trigger);
-				
-void		 gtk_source_completion_provider_finish		(GtkSourceCompletionProvider *self);
 
 G_END_DECLS
 

Modified: branches/gtksourcecompletion/tests/gsc-provider-test.c
==============================================================================
--- branches/gtksourcecompletion/tests/gsc-provider-test.c	(original)
+++ branches/gtksourcecompletion/tests/gsc-provider-test.c	Fri Apr 10 21:56:07 2009
@@ -81,12 +81,6 @@
 }
 
 static void 
-gsc_provider_test_real_finish (GtkSourceCompletionProvider* base)
-{
-
-}
-
-static void 
 gsc_provider_test_finalize (GObject *object)
 {
 	G_OBJECT_CLASS (gsc_provider_test_parent_class)->finalize (object);
@@ -104,7 +98,6 @@
 {
 	iface->get_name = gsc_provider_test_real_get_name;
 	iface->get_proposals = gsc_provider_test_real_get_proposals;
-	iface->finish = gsc_provider_test_real_finish;
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]