X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Faweather-gui.h;h=640ff2a3e9f93884bd0a43f87c99d60414cccff0;hb=7f148b0360c5f9a3cad672aa8f3c787c78dd7b4f;hp=af5e4a8243905906778e74c44fce4653741373a5;hpb=40b17f742041c317915326c6f5ea6d92397c7363;p=aweather diff --git a/src/aweather-gui.h b/src/aweather-gui.h index af5e4a8..640ff2a 100644 --- a/src/aweather-gui.h +++ b/src/aweather-gui.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andy Spencer + * Copyright (C) 2009-2010 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 @@ -20,8 +20,8 @@ #include #include -#include "aweather-view.h" -#include "aweather-plugin.h" + +#include /* Type macros */ #define AWEATHER_TYPE_GUI (aweather_gui_get_type()) @@ -38,9 +38,11 @@ struct _AWeatherGui { GtkWindow parent_instance; /* instance members */ - AWeatherView *view; - GtkBuilder *builder; - GList *plugins; + GtkBuilder *builder; + GritsViewer *viewer; + GritsPlugins *plugins; + GritsPrefs *prefs; + GtkListStore *gtk_plugins; }; struct _AWeatherGuiClass { @@ -52,13 +54,14 @@ struct _AWeatherGuiClass { GType aweather_gui_get_type(void); /* Methods */ -AWeatherGui *aweather_gui_new(); -AWeatherView *aweather_gui_get_view(AWeatherGui *gui); -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); +AWeatherGui *aweather_gui_new(); + +GritsViewer *aweather_gui_get_viewer(AWeatherGui *gui); + +GtkWidget *aweather_gui_get_widget(AWeatherGui *gui, const gchar *name); +GObject *aweather_gui_get_object(AWeatherGui *gui, const gchar *name); + +void aweather_gui_attach_plugin(AWeatherGui *self, const gchar *name); +void aweather_gui_deattach_plugin(AWeatherGui *self, const gchar *name); #endif