[gedit] spell: remove dead code
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] spell: remove dead code
- Date: Sat, 9 Jan 2016 13:28:03 +0000 (UTC)
commit 70449b9333063213d168806eb611fd49147d63e1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jan 9 14:17:49 2016 +0100
spell: remove dead code
I think a message was printed on the statusbar when there are no
misspelled words and the spell checker dialog is launched. But now that
message is printed in the dialog itself, which is better since it has
more chances to be read.
plugins/spell/gedit-spell-plugin.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 69a5ba0..7379fe9 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -22,11 +22,9 @@
#include <glib/gi18n.h>
#include <gedit/gedit-debug.h>
-#include <gedit/gedit-statusbar.h>
#include <gedit/gedit-app.h>
#include <gedit/gedit-window.h>
#include <gedit/gedit-window-activatable.h>
-#include <gtksourceview/gtksource.h>
#include <gspell/gspell.h>
#include "gedit-spell-app-activatable.h"
@@ -46,7 +44,6 @@ static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface
struct _GeditSpellPluginPrivate
{
GeditWindow *window;
- guint statusbar_context_id;
};
enum
@@ -527,7 +524,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable)
{
GeditSpellPlugin *plugin;
GeditSpellPluginPrivate *priv;
- GtkStatusbar *statusbar;
GList *views, *l;
const GActionEntry action_entries[] =
@@ -551,9 +547,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable)
G_N_ELEMENTS (action_entries),
activatable);
- statusbar = GTK_STATUSBAR (gedit_window_get_statusbar (priv->window));
- priv->statusbar_context_id = gtk_statusbar_get_context_id (statusbar, "spell_plugin_message");
-
update_ui (plugin);
views = gedit_window_get_views (priv->window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]