[gedit-plugins] Remove error parameter of the "loaded" and "saved" GeditDocument signals
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Remove error parameter of the "loaded" and "saved" GeditDocument signals
- Date: Wed, 9 Jul 2014 11:30:12 +0000 (UTC)
commit 052fb0771f24325416c3dac0c834bc262408cf81
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Jul 1 12:56:07 2014 +0200
Remove error parameter of the "loaded" and "saved" GeditDocument signals
The error parameter has been removed since the port of gedit to
GtkSourceFile.
plugins/bookmarks/gedit-bookmarks-plugin.c | 16 ++++------------
plugins/dashboard/dashboard/__init__.py | 2 +-
plugins/synctex/synctex/synctex.py | 2 +-
plugins/zeitgeist/gedit-zeitgeist-plugin.c | 2 --
4 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/plugins/bookmarks/gedit-bookmarks-plugin.c b/plugins/bookmarks/gedit-bookmarks-plugin.c
index a15d7f0..b2f648b 100644
--- a/plugins/bookmarks/gedit-bookmarks-plugin.c
+++ b/plugins/bookmarks/gedit-bookmarks-plugin.c
@@ -1142,27 +1142,19 @@ on_previous_bookmark_activate (GAction *action,
static void
on_document_loaded (GeditDocument *doc,
- const GError *error,
GeditView *view)
{
- if (error == NULL)
- {
- /* Reverting can leave one bookmark at the start, remove it. */
- remove_all_bookmarks (GTK_SOURCE_BUFFER (doc));
+ /* Reverting can leave one bookmark at the start, remove it. */
+ remove_all_bookmarks (GTK_SOURCE_BUFFER (doc));
- load_bookmark_metadata (view);
- }
+ load_bookmark_metadata (view);
}
static void
on_document_saved (GeditDocument *doc,
- const GError *error,
GeditView *view)
{
- if (error == NULL)
- {
- save_bookmark_metadata (view);
- }
+ save_bookmark_metadata (view);
}
static void
diff --git a/plugins/dashboard/dashboard/__init__.py b/plugins/dashboard/dashboard/__init__.py
index 89562b3..6ab6fbf 100644
--- a/plugins/dashboard/dashboard/__init__.py
+++ b/plugins/dashboard/dashboard/__init__.py
@@ -72,7 +72,7 @@ class DashboardWindowActivatable(GObject.Object, Gedit.WindowActivatable):
tab.get_children()[0].hide()
d = Dashboard(self.window, show_doc)
tab.pack_start(d, True, True, 0)
- doc.connect("loaded", lambda x, y: show_doc())
+ doc.connect("loaded", lambda doc: show_doc())
d.search.set_receives_default(True)
self.window.set_default(d.search)
d.search.grab_focus()
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index 01ee703..4dfac55 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -176,7 +176,7 @@ class SynctexViewHelper:
self._highlight()
self._window.present_with_time (time)
- def goto_line_after_load(self, a, line, time):
+ def goto_line_after_load(self, line, time):
GObject.idle_add (lambda : self.goto_line(line, time))
self._doc.disconnect(self._goto_handler)
diff --git a/plugins/zeitgeist/gedit-zeitgeist-plugin.c b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
index b5dcc07..c75ad76 100644
--- a/plugins/zeitgeist/gedit-zeitgeist-plugin.c
+++ b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
@@ -205,7 +205,6 @@ gedit_zeitgeist_plugin_send_event (GeditZeitgeistPlugin *plugin,
static void
document_saved (GeditDocument *doc,
- const GError *error,
GeditZeitgeistPlugin *plugin)
{
gedit_zeitgeist_plugin_send_event (plugin, doc, ZEITGEIST_ZG_MODIFY_EVENT);
@@ -213,7 +212,6 @@ document_saved (GeditDocument *doc,
static void
document_loaded (GeditDocument *doc,
- const GError *error,
GeditZeitgeistPlugin *plugin)
{
gedit_zeitgeist_plugin_send_event (plugin, doc, ZEITGEIST_ZG_ACCESS_EVENT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]