Skip to content

Commit

Permalink
Fixup 0e9923e #5 (demopluxy: add a demo pluxy showcasing how to creat…
Browse files Browse the repository at this point in the history
…e a proxy plugin)
  • Loading branch information
kugel- committed Oct 2, 2015
1 parent 8a9c66a commit d6978be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/demoproxy.c
Expand Up @@ -42,7 +42,6 @@ PluginContext;
static gboolean proxy_init(GeanyPlugin *plugin, gpointer pdata)
{
PluginContext *data;
gchar fmt[] = "item%d";
gint i = 0;
gchar *text;

Expand All @@ -55,7 +54,7 @@ static gboolean proxy_init(GeanyPlugin *plugin, gpointer pdata)
while (TRUE)
{
GtkWidget *item;
gchar *key = g_strdup_printf(fmt, i++);
gchar *key = g_strdup_printf("item%d", i++);
text = g_key_file_get_locale_string(data->file, "Init", key, NULL, NULL);
g_free(key);

Expand All @@ -78,8 +77,6 @@ static void proxy_help(GeanyPlugin *plugin, gpointer pdata)
{
PluginContext *data;
GtkWidget *dialog;
gchar *help_text;
GKeyFile *file;

data = (PluginContext *) pdata;

Expand Down

0 comments on commit d6978be

Please sign in to comment.