X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Faweather-gui.h;h=27383b258ccc293bc12f125ac055e13a5262d25d;hp=70e03a6885e1d9a867e5b102e4c372dd8b55162a;hb=1cf8b4ecd92f49dfbbe0472e02d4e5bc8841fe2f;hpb=d6cf708a2db6eae88dda328a17bf2157c9c90ca8 diff --git a/src/aweather-gui.h b/src/aweather-gui.h index 70e03a6..27383b2 100644 --- a/src/aweather-gui.h +++ b/src/aweather-gui.h @@ -21,6 +21,7 @@ #include #include #include "aweather-view.h" +#include "aweather-plugin.h" /* Type macros */ #define AWEATHER_TYPE_GUI (aweather_gui_get_type()) @@ -34,18 +35,16 @@ typedef struct _AWeatherGui AWeatherGui; typedef struct _AWeatherGuiClass AWeatherGuiClass; struct _AWeatherGui { - GObject parent_instance; + GtkWindow parent_instance; /* instance members */ AWeatherView *view; GtkBuilder *builder; - GtkWindow *window; - GtkNotebook *tabs; - GtkDrawingArea *drawing; + GList *plugins; }; struct _AWeatherGuiClass { - GObjectClass parent_class; + GtkWindowClass parent_class; /* class members */ }; @@ -56,11 +55,11 @@ GType aweather_gui_get_type(void); AWeatherGui *aweather_gui_new(); AWeatherView *aweather_gui_get_view(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_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); -//void aweather_gui_register_plugin(AWeatherGui *gui, AWeatherPlugin *plugin); - #endif