SF.net SVN: geany-plugins:[1133] trunk/geanylatex/src/geanylatex.c
frlan at users.sourceforge.net
frlan at xxxxx
Sun Jan 17 16:28:22 UTC 2010
Revision: 1133
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1133&view=rev
Author: frlan
Date: 2010-01-17 16:28:22 +0000 (Sun, 17 Jan 2010)
Log Message:
-----------
GeanyLaTeX: Make handler function return void
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-01-17 16:02:55 UTC (rev 1132)
+++ trunk/geanylatex/src/geanylatex.c 2010-01-17 16:28:22 UTC (rev 1133)
@@ -324,18 +324,18 @@
}
-static gboolean on_document_activate(G_GNUC_UNUSED GObject *object,
+static void on_document_activate(G_GNUC_UNUSED GObject *object,
GeanyDocument *doc, G_GNUC_UNUSED gpointer data)
{
- g_return_val_if_fail(doc != NULL, FALSE);
+ g_return_if_fail(doc != NULL);
toggle_toolbar_items_by_file_type(doc->file_type->id);
- return FALSE;
+ return;
}
-static gboolean on_document_new(GObject *object, GeanyDocument *doc, gpointer data)
+static void on_document_new(GObject *object, GeanyDocument *doc, gpointer data)
{
- return on_document_activate(object, doc, data);
+ on_document_activate(object, doc, data);
}
@@ -353,16 +353,16 @@
}
-static gboolean on_document_filetype_set(GObject *obj, GeanyDocument *doc,
+static void on_document_filetype_set(GObject *obj, GeanyDocument *doc,
GeanyFiletype *filetype_old, gpointer user_data)
{
if (doc != NULL)
{
GeanyFiletype *ft = doc->file_type;
if (filetype_old != NULL && filetype_old->id != ft->id)
- return on_document_activate(obj, doc, user_data);
+ on_document_activate(obj, doc, user_data);
}
- return FALSE;
+ return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list