note to self about monitor discovery
[opo.git] / gtk-app.h
blob6fba09399f91d5699dd5fe9c2d804d4d266b8ed0
1 #define WIDTH 400
2 #define HEIGHT 300
4 #define QUOTE_(x) #x
5 #define QUOTE(x) QUOTE_(x)
7 static gboolean option_fake = TRUE; /* Should eventually be FALSE !*/
8 static gboolean option_fullscreen = FALSE;
9 static gint option_screens = 1;
11 #define MAX_SCREENS 8
13 static GOptionEntry entries[] =
15 { "fake-source", 0, 0, G_OPTION_ARG_NONE, &option_fake,
16 "use videotestsrc", NULL },
17 { "full-screen", 'f', 0, G_OPTION_ARG_NONE, &option_fullscreen, "run full screen", NULL },
18 { "screens", 's', 0, G_OPTION_ARG_INT, &option_screens, "Use this many screens, (max "
19 QUOTE(MAX_SCREENS) ")", "S" },
20 { NULL, 0, 0, 0, NULL, NULL, NULL }
24 typedef struct windows_s {
25 int realised;
26 int requested;
27 GstElement *sinks[MAX_SCREENS];
28 XID xwindows[MAX_SCREENS];
29 GtkWidget *gtk_windows[MAX_SCREENS];
30 } windows_t;