Some cleanup

This commit is contained in:
Pierre Pronchery 2011-07-30 01:39:14 +00:00
parent 416cd1b10c
commit 6fbd94b337

View File

@ -56,11 +56,11 @@ BrowserPlugin plugin =
/* template_init */ /* template_init */
static GtkWidget * _template_init(BrowserPlugin * plugin) static GtkWidget * _template_init(BrowserPlugin * plugin)
{ {
Template * volumes; Template * template;
if((volumes = object_new(sizeof(*volumes))) == NULL) if((template = object_new(sizeof(*template))) == NULL)
return NULL; return NULL;
plugin->priv = volumes; plugin->priv = template;
/* FIXME implement */ /* FIXME implement */
return gtk_label_new("Template"); return gtk_label_new("Template");
} }
@ -69,16 +69,16 @@ static GtkWidget * _template_init(BrowserPlugin * plugin)
/* template_destroy */ /* template_destroy */
static void _template_destroy(BrowserPlugin * plugin) static void _template_destroy(BrowserPlugin * plugin)
{ {
Template * volumes = plugin->priv; Template * template = plugin->priv;
object_delete(volumes); object_delete(template);
} }
/* template_refresh */ /* template_refresh */
static void _template_refresh(BrowserPlugin * plugin, char const * path) static void _template_refresh(BrowserPlugin * plugin, char const * path)
{ {
Template * volumes = plugin->priv; Template * template = plugin->priv;
/* FIXME implement */ /* FIXME implement */
} }