From 416cd1b10c3507079173dd47f7c4bc6010374be3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 30 Jul 2011 01:38:04 +0000 Subject: [PATCH] Initial import --- src/plugins/template.c | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/plugins/template.c diff --git a/src/plugins/template.c b/src/plugins/template.c new file mode 100644 index 0000000..9efa8c7 --- /dev/null +++ b/src/plugins/template.c @@ -0,0 +1,84 @@ +/* $Id$ */ +/* Copyright (c) 2011 Pierre Pronchery */ +/* This file is part of DeforaOS Desktop Browser */ +/* This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + + + +#include +#include +#include "Browser.h" +#define _(string) gettext(string) +#define N_(string) (string) + + +/* Template */ +/* private */ +/* types */ +typedef struct _Template +{ + /* FIXME implement */ +} Template; + + +/* prototypes */ +static GtkWidget * _template_init(BrowserPlugin * plugin); +static void _template_destroy(BrowserPlugin * plugin); +static void _template_refresh(BrowserPlugin * plugin, char const * path); + + +/* public */ +/* variables */ +BrowserPlugin plugin = +{ + NULL, + N_("Template"), + NULL, + _template_init, + _template_destroy, + _template_refresh, + NULL +}; + + +/* private */ +/* functions */ +/* template_init */ +static GtkWidget * _template_init(BrowserPlugin * plugin) +{ + Template * volumes; + + if((volumes = object_new(sizeof(*volumes))) == NULL) + return NULL; + plugin->priv = volumes; + /* FIXME implement */ + return gtk_label_new("Template"); +} + + +/* template_destroy */ +static void _template_destroy(BrowserPlugin * plugin) +{ + Template * volumes = plugin->priv; + + object_delete(volumes); +} + + +/* template_refresh */ +static void _template_refresh(BrowserPlugin * plugin, char const * path) +{ + Template * volumes = plugin->priv; + + /* FIXME implement */ +}