gtksourceview r2252 - in branches/gtksourcecompletion: . gtksourceview tests
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2252 - in branches/gtksourcecompletion: . gtksourceview tests
- Date: Fri, 10 Apr 2009 21:19:07 +0000 (UTC)
Author: icq
Date: Fri Apr 10 21:19:07 2009
New Revision: 2252
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2252&view=rev
Log:
2009-04-10 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/gtksourcecompletion.c:
* gtksourceview/gtksourcecompletion.h:
* tests/completion-simple.c:
Renamed register/unregister to add/remove.
Modified:
branches/gtksourcecompletion/ChangeLog
branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h
branches/gtksourcecompletion/tests/completion-simple.c
Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.c Fri Apr 10 21:19:07 2009
@@ -1578,7 +1578,7 @@
}
/**
- * gtk_source_completion_register_trigger:
+ * gtk_source_completion_add_trigger:
* @self: The #GtkSourceCompletion
* @trigger: The trigger to register
*
@@ -1589,8 +1589,8 @@
* Returns: %TRUE if the trigger has been registered
*/
gboolean
-gtk_source_completion_register_trigger (GtkSourceCompletion *self,
- GtkSourceCompletionTrigger *trigger)
+gtk_source_completion_add_trigger (GtkSourceCompletion *self,
+ GtkSourceCompletionTrigger *trigger)
{
GList *l;
@@ -1616,7 +1616,7 @@
}
/**
- * gtk_source_completion_register_provider:
+ * gtk_source_completion_add_provider:
* @self: the #GtkSourceCompletion
* @provider: The #GtkSourceCompletionProvider.
* @trigger: The trigger name what you want to register this provider
@@ -1630,9 +1630,9 @@
* or the trigger doesn't exists)
**/
gboolean
-gtk_source_completion_register_provider (GtkSourceCompletion *self,
- GtkSourceCompletionProvider *provider,
- GtkSourceCompletionTrigger *trigger)
+gtk_source_completion_add_provider (GtkSourceCompletion *self,
+ GtkSourceCompletionProvider *provider,
+ GtkSourceCompletionTrigger *trigger)
{
PTPair *ptp;
GList *l;
@@ -1662,7 +1662,7 @@
}
/**
- * gtk_source_completion_unregister_trigger:
+ * gtk_source_completion_remove_trigger:
* @self: The #GtkSourceCompletion
* @trigger: The trigger to unregister
*
@@ -1674,8 +1674,8 @@
* the trigger has not been registered)
*/
gboolean
-gtk_source_completion_unregister_trigger (GtkSourceCompletion *self,
- GtkSourceCompletionTrigger *trigger)
+gtk_source_completion_remove_trigger (GtkSourceCompletion *self,
+ GtkSourceCompletionTrigger *trigger)
{
GList *l;
@@ -1705,7 +1705,7 @@
}
/**
- * gtk_source_completion_unregister_provider:
+ * gtk_source_completion_remove_provider:
* @self: the #GtkSourceCompletion
* @provider: The #GtkSourceCompletionProvider.
* @trigger: The trigger what you want to unregister this provider
@@ -1716,9 +1716,9 @@
* or the trigger don't exists)
**/
gboolean
-gtk_source_completion_unregister_provider (GtkSourceCompletion *self,
- GtkSourceCompletionProvider *provider,
- GtkSourceCompletionTrigger *trigger)
+gtk_source_completion_remove_provider (GtkSourceCompletion *self,
+ GtkSourceCompletionProvider *provider,
+ GtkSourceCompletionTrigger *trigger)
{
GList *l;
gboolean ret = FALSE;
Modified: branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h
==============================================================================
--- branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h (original)
+++ branches/gtksourcecompletion/gtksourceview/gtksourcecompletion.h Fri Apr 10 21:19:07 2009
@@ -85,18 +85,18 @@
*gtk_source_completion_get_provider (GtkSourceCompletion *self,
const gchar *prov_name);
-gboolean gtk_source_completion_register_provider (GtkSourceCompletion *self,
+gboolean gtk_source_completion_add_provider (GtkSourceCompletion *self,
GtkSourceCompletionProvider *provider,
GtkSourceCompletionTrigger *trigger);
-gboolean gtk_source_completion_unregister_provider (GtkSourceCompletion *self,
+gboolean gtk_source_completion_remove_provider (GtkSourceCompletion *self,
GtkSourceCompletionProvider *provider,
GtkSourceCompletionTrigger *trigger);
-gboolean gtk_source_completion_register_trigger (GtkSourceCompletion *self,
+gboolean gtk_source_completion_add_trigger (GtkSourceCompletion *self,
GtkSourceCompletionTrigger *trigger);
-gboolean gtk_source_completion_unregister_trigger (GtkSourceCompletion *self,
+gboolean gtk_source_completion_remove_trigger (GtkSourceCompletion *self,
GtkSourceCompletionTrigger *trigger);
GtkSourceCompletionTrigger
Modified: branches/gtksourcecompletion/tests/completion-simple.c
==============================================================================
--- branches/gtksourcecompletion/tests/completion-simple.c (original)
+++ branches/gtksourcecompletion/tests/completion-simple.c Fri Apr 10 21:19:07 2009
@@ -323,10 +323,10 @@
"User Request Trigger",
"<Control>Return");
- gtk_source_completion_register_trigger (comp, GTK_SOURCE_COMPLETION_TRIGGER (ur_trigger));
+ gtk_source_completion_add_trigger (comp, GTK_SOURCE_COMPLETION_TRIGGER (ur_trigger));
- gtk_source_completion_register_provider (comp, GTK_SOURCE_COMPLETION_PROVIDER (prov_test),
- GTK_SOURCE_COMPLETION_TRIGGER (ur_trigger));
+ gtk_source_completion_add_provider (comp, GTK_SOURCE_COMPLETION_PROVIDER (prov_test),
+ GTK_SOURCE_COMPLETION_TRIGGER (ur_trigger));
g_signal_connect (comp, "show", G_CALLBACK (show_completion_cb), NULL);
g_signal_connect (comp, "hide", G_CALLBACK (hide_completion_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]