X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Faweather-gui.h;h=c1c76bebd0c283f67d4bd3e7b99385c64fd94a85;hp=91e53d24bdabfb629b470682f18a1473ba4700f1;hb=72842797f3fddb8ddb3c309ba9ceec889c4ec4e2;hpb=55d69c616a9f4f3bae23045f1174047003e2e1d4 diff --git a/src/aweather-gui.h b/src/aweather-gui.h index 91e53d2..c1c76be 100644 --- a/src/aweather-gui.h +++ b/src/aweather-gui.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andy Spencer + * Copyright (C) 2009-2011 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()) @@ -35,19 +35,19 @@ 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; + GtkBuilder *builder; + GritsViewer *viewer; + GritsPlugins *plugins; + GritsPrefs *prefs; + GtkListStore *gtk_plugins; + guint update_source; }; struct _AWeatherGuiClass { - GObjectClass parent_class; + GtkWindowClass parent_class; /* class members */ }; @@ -55,13 +55,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