summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-03-09 13:25:58 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-03-09 13:25:58 -0400
commit561fd985b13fcc35ae73af5d91d98b2f540d8821 (patch)
tree2e899149e1e91b628511bb66a32d7d49f8e29f6a /window.h
parentbe2423531636f0c81cdd1aa909550f4c86568db0 (diff)
multi-window support
Diffstat (limited to 'window.h')
-rw-r--r--window.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/window.h b/window.h
index cdf5a86..92834e3 100644
--- a/window.h
+++ b/window.h
@@ -6,24 +6,15 @@
#define GLADE_FILE "siv.glade"
typedef struct Window Window;
-struct Window
-{
- GladeXML * xml;
- GdkPixbuf * original;
- GdkPixbuf * displayed;
+typedef struct App App;
- int width;
- int height;
- int zoom_level;
- gboolean first;
+void app_register_window (App *app, Window *window);
+void app_unregister_window (App *app, Window *window);
- GtkAllocation allocation;
-};
-
-
-Window * window_new (void);
+Window * window_new (App *app);
gboolean window_load_file (Window *window,
const char *file,
GError **err);
void window_show (Window *window);
+void window_free (Window *window);