summaryrefslogtreecommitdiff
path: root/window.h
blob: 92834e3bdc90c3992a3ba17a90097e428c5b058e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <gtk/gtk.h>
#include <glade/glade.h>

#define APPLICATION_NAME "Simple Image Viewer"
#define PACKAGE_VERSION  "0.0.1"
#define GLADE_FILE       "siv.glade"

typedef struct Window Window;
typedef struct App App;

void app_register_window (App *app, Window *window);
void app_unregister_window (App *app, Window *window);


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);