X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Faweather-gui.h;h=91e53d24bdabfb629b470682f18a1473ba4700f1;hb=13e5efb9aae0da9f9c3cc6e0c32aafae2037de18;hp=5d153ee33f37154f28fa7338ab4062f7bbd8726b;hpb=d527bfdb9682b1824e1c2df318a92291aaa48860;p=grits diff --git a/src/aweather-gui.h b/src/aweather-gui.h index 5d153ee..91e53d2 100644 --- a/src/aweather-gui.h +++ b/src/aweather-gui.h @@ -1,9 +1,27 @@ +/* + * Copyright (C) 2009 Andy Spencer + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + */ + #ifndef __AWEATHER_GUI_H__ #define __AWEATHER_GUI_H__ #include #include #include "aweather-view.h" +#include "aweather-plugin.h" /* Type macros */ #define AWEATHER_TYPE_GUI (aweather_gui_get_type()) @@ -25,6 +43,7 @@ struct _AWeatherGui { GtkWindow *window; GtkNotebook *tabs; GtkDrawingArea *drawing; + GList *plugins; }; struct _AWeatherGuiClass { @@ -38,11 +57,11 @@ GType aweather_gui_get_type(void); /* Methods */ AWeatherGui *aweather_gui_new(); AWeatherView *aweather_gui_get_view(AWeatherGui *gui); -GtkBuilder *aweather_gui_get_builder(AWeatherGui *gui); -GtkWindow *aweather_gui_get_window(AWeatherGui *gui); -GtkNotebook *aweather_gui_get_tabs(AWeatherGui *gui); -GtkDrawingArea *aweather_gui_get_drawing(AWeatherGui *gui); - -//void aweather_gui_register_plugin(AWeatherGui *gui, AWeatherPlugin *plugin); +GtkWidget *aweather_gui_get_widget(AWeatherGui *gui, const gchar *name); +void aweather_gui_register_plugin(AWeatherGui *gui, AWeatherPlugin *plugin); +void aweather_gui_gl_redraw(AWeatherGui *gui); +void aweather_gui_gl_begin(AWeatherGui *gui); +void aweather_gui_gl_end(AWeatherGui *gui); +void aweather_gui_gl_flush(AWeatherGui *gui); #endif