Commit fc6803e6 authored by Fernando Herrera's avatar Fernando Herrera Committed by Paolo Maggi

add X-GNOME-BUGZILLA stuff

2002-12-03  Fernando Herrera <fherrera@onirica.com>

 	* data/gedit.desktop.in: add X-GNOME-BUGZILLA stuff

2002-12-03  Paolo Maggi <maggi@athena.polito.it>

	* gedit-commands.c (TO_BE_IMPLEMENTED): removed
	(gedit_cmd_search_find_again): fixed to support "wrap around"

	* gedit-document.c (gedit_document_find): fix a bug in the case
	you are searching an entire word
	(gedit_document_find_again): added a from cursor parameter

	* gedit-document.h (gedit_document_find_again): ditto

	* gedit2.h (GBOOLEAN_TO_POINTER)(GPOINTER_TO_BOOLEAN): #defined

	* dialogs/gedit-dialogs.h (gedit_was_wrap_around_quark): new function

	* dialogs/gedit-dialog-replace.c: fixed according to ui-review

	* dialogs/replace.glade2: ditto
parent 1028b1d4
2002-12-03 Fernando Herrera <fherrera@onirica.com>
* data/gedit.desktop.in: add X-GNOME-BUGZILLA stuff
2002-11-27 Paolo Maggi <maggi@athena.polito.it>
* TODO: Updated
......
......@@ -7,3 +7,6 @@ Type=Application
Icon=gedit-icon.png
X-GNOME-DocPath=gedit/gedit.xml
Categories=Application;Utility;TextEditor;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gedit
X-GNOME-Bugzilla-Component=general
2002-12-03 Paolo Maggi <maggi@athena.polito.it>
* gedit-commands.c (TO_BE_IMPLEMENTED): removed
(gedit_cmd_search_find_again): fixed to support "wrap around"
* gedit-document.c (gedit_document_find): fix a bug in the case
you are searching an entire word
(gedit_document_find_again): added a from cursor parameter
* gedit-document.h (gedit_document_find_again): ditto
* gedit2.h (GBOOLEAN_TO_POINTER)(GPOINTER_TO_BOOLEAN): #defined
* dialogs/gedit-dialogs.h (gedit_was_wrap_around_quark): new function
* dialogs/gedit-dialog-replace.c: fixed according to ui-review
* dialogs/replace.glade2: ditto
2002-12-03 Paolo Maggi <maggi@athena.polito.it>
* gedit-plugins-engine.c (gedit_plugins_engine_load): free
gedit_plugin_file (fix bug #100021, thanks to Kjartan Maraas
and Martin Hostettler for the patch)
2002-11-28 Paolo Maggi <maggi@athena.polito.it>
* gedit-plugins-engine.c (gedit_plugins_engine_activate_plugin)
......
This diff is collapsed.
......@@ -34,6 +34,8 @@
#include <gtk/gtkwindow.h>
GQuark gedit_was_wrap_around_quark (void);
void gedit_dialog_goto_line (void);
void gedit_dialog_find (void);
void gedit_dialog_replace (void);
......
......@@ -220,10 +220,10 @@
<property name="spacing">12</property>
<child>
<widget class="GtkCheckButton" id="case_sensitive">
<widget class="GtkCheckButton" id="match_case_checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Case sensi_tive</property>
<property name="label" translatable="yes">_Match case</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
......@@ -254,33 +254,17 @@
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label2">
<widget class="GtkCheckButton" id="wrap_around_checkbutton">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;span weight=&quot;bold&quot;&gt;Search from&lt;/span&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Wrap around</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
......@@ -288,90 +272,6 @@
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="label" translatable="yes"> </property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox5">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkRadioButton" id="beginning_radio_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Beginning of the document</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="cursor_radio_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">C_ursor position</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">beginning_radio_button</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
......
......@@ -47,16 +47,6 @@
#include "dialogs/gedit-dialogs.h"
#include "dialogs/gedit-preferences-dialog.h"
#define TO_BE_IMPLEMENTED { GtkWidget *message_dlg; \
message_dlg = gtk_message_dialog_new ( \
GTK_WINDOW (bonobo_mdi_get_active_window (BONOBO_MDI (gedit_mdi))), \
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, \
GTK_MESSAGE_INFO, \
GTK_BUTTONS_OK, \
_("Not yet implemented.")); \
gtk_dialog_set_default_response (GTK_DIALOG (message_dlg), GTK_RESPONSE_OK); \
gtk_dialog_run (GTK_DIALOG (message_dlg)); \
gtk_widget_destroy (message_dlg); }
void
gedit_cmd_file_new (BonoboUIComponent *uic, gpointer user_data, const gchar* verbname)
......@@ -326,16 +316,31 @@ gedit_cmd_search_find_again (BonoboUIComponent *uic, gpointer user_data, const g
last_searched_text = gedit_document_get_last_searched_text (doc);
if (last_searched_text != NULL)
{
if (!gedit_document_find_again (doc))
gpointer data;
gboolean was_wrap_around;
gboolean found;
data = g_object_get_qdata (G_OBJECT (doc), gedit_was_wrap_around_quark ());
if (data == NULL)
was_wrap_around = TRUE;
else
was_wrap_around = GPOINTER_TO_BOOLEAN (data);
found = gedit_document_find_again (doc, TRUE);
if (!found && was_wrap_around)
found = gedit_document_find_again (doc, FALSE);
if (!found)
{
GtkWidget *message_dlg;
message_dlg = gtk_message_dialog_new (
GTK_WINDOW (bonobo_mdi_get_active_window (BONOBO_MDI (gedit_mdi))),
GTK_WINDOW (gedit_get_active_window ()),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
_("The string \"%s\" has not been found."), last_searched_text);
_("The text \"%s\" was not found."), last_searched_text);
gtk_dialog_set_default_response (GTK_DIALOG (message_dlg), GTK_RESPONSE_OK);
......@@ -347,12 +352,10 @@ gedit_cmd_search_find_again (BonoboUIComponent *uic, gpointer user_data, const g
else
gedit_view_scroll_to_cursor (active_view);
g_free (last_searched_text);
}
else
{
g_free (last_searched_text);
gedit_dialog_find ();
}
}
......@@ -464,7 +467,8 @@ gedit_cmd_help_about (BonoboUIComponent *uic, gpointer user_data, const gchar* v
_("gedit is a small and lightweight text editor for Gnome"),
(const char **)authors,
(const char **)documenters,
strcmp (translator_credits, "translator_credits") != 0 ? (const char *)translator_credits : NULL,
strcmp (translator_credits, "translator_credits") != 0 ?
(const char *)translator_credits : NULL,
pixbuf);
gtk_window_set_transient_for (GTK_WINDOW (about),
......
......@@ -1786,18 +1786,29 @@ gedit_document_find (GeditDocument* doc, const gchar* str,
else
gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc), &iter, 0);
found = FALSE;
if (*converted_str != '\0')
{
GtkTextIter match_start, match_end;
found = gedit_text_iter_forward_search (&iter, converted_str, search_flags,
&match_start, &match_end,
NULL);
if (found && entire_word)
while (!found)
{
found = gtk_text_iter_starts_word (&match_start) &&
gtk_text_iter_ends_word (&match_end);
found = gedit_text_iter_forward_search (&iter, converted_str, search_flags,
&match_start, &match_end,
NULL);
if (found && entire_word)
{
found = gtk_text_iter_starts_word (&match_start) &&
gtk_text_iter_ends_word (&match_end);
if (!found)
iter = match_end;
}
else
break;
}
if (found)
......@@ -1823,7 +1834,7 @@ gedit_document_find (GeditDocument* doc, const gchar* str,
}
gboolean
gedit_document_find_again (GeditDocument* doc)
gedit_document_find_again (GeditDocument* doc, gboolean from_cursor)
{
gchar* last_searched_text;
gboolean found;
......@@ -1838,8 +1849,12 @@ gedit_document_find_again (GeditDocument* doc)
if (last_searched_text == NULL)
return FALSE;
found = gedit_document_find (doc, last_searched_text, TRUE,
doc->priv->last_search_was_case_sensitive, doc->priv->last_search_was_entire_word);
found = gedit_document_find (doc,
last_searched_text,
from_cursor,
doc->priv->last_search_was_case_sensitive,
doc->priv->last_search_was_entire_word);
g_free (last_searched_text);
return found;
......
......@@ -162,7 +162,8 @@ gboolean gedit_document_find (GeditDocument* doc, const gchar* str,
gboolean from_cursor,
gboolean case_sensitive,
gboolean entire_word);
gboolean gedit_document_find_again (GeditDocument* doc);
gboolean gedit_document_find_again (GeditDocument* doc,
gboolean from_cursor);
void gedit_document_replace_selected_text (GeditDocument *doc,
const gchar *replace);
......
......@@ -173,7 +173,7 @@ gedit_plugins_engine_load (const gchar *file)
GeditPlugin *plugin;
GeditPluginFile *gedit_plugin_file;
GeditPluginFile *gedit_plugin_file = NULL;
gchar *str;
gboolean to_be_activated;
......@@ -306,6 +306,8 @@ gedit_plugins_engine_load (const gchar *file)
gedit_debug (DEBUG_PLUGINS, "Plugin: %s (INSTALLED)", plugin->name);
gedit_plugin_file_free (gedit_plugin_file);
return plugin;
error:
......@@ -319,7 +321,8 @@ error:
g_free (plugin->copyright);
g_free (plugin);
gedit_plugin_file_free (gedit_plugin_file);
return NULL;
}
......
......@@ -45,6 +45,9 @@ extern gboolean gedit_close_x_button_pressed;
extern gboolean gedit_exit_button_pressed;
extern BonoboObject *gedit_app_server;
#define GBOOLEAN_TO_POINTER(i) ((gpointer) ((i) ? 2 : 1))
#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((((gint)(i)) == 2) ? TRUE : FALSE))
BonoboWindow* gedit_get_active_window (void);
GeditDocument* gedit_get_active_document (void);
GeditView* gedit_get_active_view (void);
......
2002-12-03 Paolo Maggi <maggi@athena.polito.it>
* gedit-commands.c (TO_BE_IMPLEMENTED): removed
(gedit_cmd_search_find_again): fixed to support "wrap around"
* gedit-document.c (gedit_document_find): fix a bug in the case
you are searching an entire word
(gedit_document_find_again): added a from cursor parameter
* gedit-document.h (gedit_document_find_again): ditto
* gedit2.h (GBOOLEAN_TO_POINTER)(GPOINTER_TO_BOOLEAN): #defined
* dialogs/gedit-dialogs.h (gedit_was_wrap_around_quark): new function
* dialogs/gedit-dialog-replace.c: fixed according to ui-review
* dialogs/replace.glade2: ditto
2002-12-03 Paolo Maggi <maggi@athena.polito.it>
* gedit-plugins-engine.c (gedit_plugins_engine_load): free
gedit_plugin_file (fix bug #100021, thanks to Kjartan Maraas
and Martin Hostettler for the patch)
2002-11-28 Paolo Maggi <maggi@athena.polito.it>
* gedit-plugins-engine.c (gedit_plugins_engine_activate_plugin)
......
This diff is collapsed.
......@@ -34,6 +34,8 @@
#include <gtk/gtkwindow.h>
GQuark gedit_was_wrap_around_quark (void);
void gedit_dialog_goto_line (void);
void gedit_dialog_find (void);
void gedit_dialog_replace (void);
......
......@@ -220,10 +220,10 @@
<property name="spacing">12</property>
<child>
<widget class="GtkCheckButton" id="case_sensitive">
<widget class="GtkCheckButton" id="match_case_checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Case sensi_tive</property>
<property name="label" translatable="yes">_Match case</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
......@@ -254,33 +254,17 @@
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label2">
<widget class="GtkCheckButton" id="wrap_around_checkbutton">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;span weight=&quot;bold&quot;&gt;Search from&lt;/span&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Wrap around</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
......@@ -288,90 +272,6 @@
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="label" translatable="yes"> </property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox5">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkRadioButton" id="beginning_radio_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Beginning of the document</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="cursor_radio_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">C_ursor position</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">beginning_radio_button</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
......
......@@ -47,16 +47,6 @@
#include "dialogs/gedit-dialogs.h"
#include "dialogs/gedit-preferences-dialog.h"
#define TO_BE_IMPLEMENTED { GtkWidget *message_dlg; \
message_dlg = gtk_message_dialog_new ( \
GTK_WINDOW (bonobo_mdi_get_active_window (BONOBO_MDI (gedit_mdi))), \
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, \
GTK_MESSAGE_INFO, \
GTK_BUTTONS_OK, \
_("Not yet implemented.")); \
gtk_dialog_set_default_response (GTK_DIALOG (message_dlg), GTK_RESPONSE_OK); \
gtk_dialog_run (GTK_DIALOG (message_dlg)); \
gtk_widget_destroy (message_dlg); }
void
gedit_cmd_file_new (BonoboUIComponent *uic, gpointer user_data, const gchar* verbname)
......@@ -326,16 +316,31 @@ gedit_cmd_search_find_again (BonoboUIComponent *uic, gpointer user_data, const g
last_searched_text = gedit_document_get_last_searched_text (doc);
if (last_searched_text != NULL)
{
if (!gedit_document_find_again (doc))
gpointer data;
gboolean was_wrap_around;
gboolean found;
data = g_object_get_qdata (G_OBJECT (doc), gedit_was_wrap_around_quark ());
if (data == NULL)
was_wrap_around = TRUE;
else
was_wrap_around = GPOINTER_TO_BOOLEAN (data);
found = gedit_document_find_again (doc, TRUE);
if (!found && was_wrap_around)
found = gedit_document_find_again (doc, FALSE);
if (!found)
{
GtkWidget *message_dlg;
message_dlg = gtk_message_dialog_new (
GTK_WINDOW (bonobo_mdi_get_active_window (BONOBO_MDI (gedit_mdi))),
GTK_WINDOW (gedit_get_active_window ()),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
_("The string \"%s\" has not been found."), last_searched_text);
_("The text \"%s\" was not found."), last_searched_text);
gtk_dialog_set_default_response (GTK_DIALOG (message_dlg), GTK_RESPONSE_OK);
......@@ -347,12 +352,10 @@ gedit_cmd_search_find_again (BonoboUIComponent *uic, gpointer user_data, const g
else
gedit_view_scroll_to_cursor (active_view);
g_free (last_searched_text);
}
else
{
g_free (last_searched_text);
gedit_dialog_find ();
}
}
......@@ -464,7 +467,8 @@ gedit_cmd_help_about (BonoboUIComponent *uic, gpointer user_data, const gchar* v
_("gedit is a small and lightweight text editor for Gnome"),
(const char **)authors,
(const char **)documenters,
strcmp (translator_credits, "translator_credits") != 0 ? (const char *)translator_credits : NULL,
strcmp (translator_credits, "translator_credits") != 0 ?
(const char *)translator_credits : NULL,
pixbuf);
gtk_window_set_transient_for (GTK_WINDOW (about),
......
......@@ -1786,18 +1786,29 @@ gedit_document_find (GeditDocument* doc, const gchar* str,
else
gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc), &iter, 0);
found = FALSE;
if (*converted_str != '\0')
{
GtkTextIter match_start, match_end;
found = gedit_text_iter_forward_search (&iter, converted_str, search_flags,
&match_start, &match_end,
NULL);
if (found && entire_word)
while (!found)
{
found = gtk_text_iter_starts_word (&match_start) &&
gtk_text_iter_ends_word (&match_end);
found = gedit_text_iter_forward_search (&iter, converted_str, search_flags,
&match_start, &match_end,
NULL);
if (found && entire_word)
{
found = gtk_text_iter_starts_word (&match_start) &&
gtk_text_iter_ends_word (&match_end);
if (!found)
iter = match_end;
}
else
break;
}
if (found)
......@@ -1823,7 +1834,7 @@ gedit_document_find (GeditDocument* doc, const gchar* str,
}
gboolean
gedit_document_find_again (GeditDocument* doc)
gedit_document_find_again (GeditDocument* doc, gboolean from_cursor)
{
gchar* last_searched_text;
gboolean found;
......@@ -1838,8 +1849,12 @@ gedit_document_find_again (GeditDocument* doc)
if (last_searched_text == NULL)
return FALSE;
found = gedit_document_find (doc, last_searched_text, TRUE,
doc->priv->last_search_was_case_sensitive, doc->priv->last_search_was_entire_word);
found = gedit_document_find (doc,
last_searched_text,
from_cursor,
doc->priv->last_search_was_case_sensitive,
doc->priv->last_search_was_entire_word);
g_free (last_searched_text);
return found;
......
......@@ -162,7 +162,8 @@ gboolean gedit_document_find (GeditDocument* doc, const gchar* str,
gboolean from_cursor,
gboolean case_sensitive,
gboolean entire_word);
gboolean gedit_document_find_again (GeditDocument* doc);
gboolean gedit_document_find_again (GeditDocument* doc,
gboolean from_cursor);
void gedit_document_replace_selected_text (GeditDocument *doc,
const gchar *replace);
......
......@@ -173,7 +173,7 @@ gedit_plugins_engine_load (const gchar *file)
GeditPlugin *plugin;
GeditPluginFile *gedit_plugin_file;
GeditPluginFile *gedit_plugin_file = NULL;
gchar *str;
gboolean to_be_activated;
......@@ -306,6 +306,8 @@ gedit_plugins_engine_load (const gchar *file)
gedit_debug (DEBUG_PLUGINS, "Plugin: %s (INSTALLED)", plugin->name);
gedit_plugin_file_free (gedit_plugin_file);