Rework chart save procedure

* Fixed some design flows: AgDb should not know about the window
* AgChart now only creates an AgDbSave structure, saving is done through
  AgWindow
This commit is contained in:
2014-08-02 01:37:11 +02:00
parent 860638ed98
commit ab12922d8a
5 changed files with 60 additions and 52 deletions

View File

@@ -50,7 +50,8 @@ typedef struct _AgDbSave {
} AgDbSave;
typedef enum {
AG_DB_ERROR_NO_CHART
AG_DB_ERROR_NO_CHART,
AG_DB_ERROR_DATABASE_ERROR,
} AgDbError;
GType ag_db_get_type(void) G_GNUC_CONST;
@@ -61,7 +62,6 @@ void ag_db_save_data_free(AgDbSave *save_data);
gboolean ag_db_save_chart(AgDb *db,
AgDbSave *save_data,
GtkWidget *window,
GError **err);
GList *ag_db_get_chart_list(AgDb *db, GError **err);