]> Pileus Git - grits/blobdiff - src/aweather-gui.h
Splitting GIS into a shared library, and a lot more
[grits] / src / aweather-gui.h
index 476cab18ac7201c9d370266dd85b78ad641e0ddf..eb28a55307fca65f09e81df55620215e7dc3460c 100644 (file)
 
 #include <gtk/gtk.h>
 #include <glib-object.h>
-#include "gis-opengl.h"
-#include "gis-world.h"
-#include "gis-view.h"
-#include "aweather-plugin.h"
+
+#include <gis/gis.h>
 
 /* Type macros */
 #define AWEATHER_TYPE_GUI            (aweather_gui_get_type())
@@ -40,12 +38,12 @@ struct _AWeatherGui {
        GtkWindow parent_instance;
 
        /* instance members */
-       GtkBuilder *builder;
-       GisWorld   *world;
-       GisView    *view;
-       GisOpenGL  *opengl;
-       GList      *plugins;
-       GKeyFile   *prefs;
+       GtkBuilder   *builder;
+       GisWorld     *world;
+       GisView      *view;
+       GisOpenGL    *opengl;
+       GisPlugins   *plugins;
+       GisPrefs     *prefs;
        GtkListStore *gtk_plugins;
 };
 
@@ -67,7 +65,7 @@ GisView     *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);
 
-gboolean     aweather_gui_load_plugin(AWeatherGui *gui, const gchar *name);
-gboolean     aweather_gui_unload_plugin(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