Commit 70449b93 authored by Sébastien Wilmet's avatar Sébastien Wilmet

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.
parent 70cf8bcc
...@@ -22,11 +22,9 @@ ...@@ -22,11 +22,9 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <gedit/gedit-debug.h> #include <gedit/gedit-debug.h>
#include <gedit/gedit-statusbar.h>
#include <gedit/gedit-app.h> #include <gedit/gedit-app.h>
#include <gedit/gedit-window.h> #include <gedit/gedit-window.h>
#include <gedit/gedit-window-activatable.h> #include <gedit/gedit-window-activatable.h>
#include <gtksourceview/gtksource.h>
#include <gspell/gspell.h> #include <gspell/gspell.h>
#include "gedit-spell-app-activatable.h" #include "gedit-spell-app-activatable.h"
...@@ -46,7 +44,6 @@ static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface ...@@ -46,7 +44,6 @@ static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface
struct _GeditSpellPluginPrivate struct _GeditSpellPluginPrivate
{ {
GeditWindow *window; GeditWindow *window;
guint statusbar_context_id;
}; };
enum enum
...@@ -527,7 +524,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable) ...@@ -527,7 +524,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable)
{ {
GeditSpellPlugin *plugin; GeditSpellPlugin *plugin;
GeditSpellPluginPrivate *priv; GeditSpellPluginPrivate *priv;
GtkStatusbar *statusbar;
GList *views, *l; GList *views, *l;
const GActionEntry action_entries[] = const GActionEntry action_entries[] =
...@@ -551,9 +547,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable) ...@@ -551,9 +547,6 @@ gedit_spell_plugin_activate (GeditWindowActivatable *activatable)
G_N_ELEMENTS (action_entries), G_N_ELEMENTS (action_entries),
activatable); 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); update_ui (plugin);
views = gedit_window_get_views (priv->window); views = gedit_window_get_views (priv->window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment