Recognizes if input is ogg or not.
[xiph.git] / postfish / subpanel.h
blobf5c0f9be96df01f751b0b1d28f210868dde6eb95
1 /*
3 * postfish
4 *
5 * Copyright (C) 2002-2005 Monty
7 * Postfish is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * Postfish is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 typedef struct{
25 GtkWidget *mainpanel_windowbutton;
26 GtkWidget **mainpanel_activebutton;
27 GtkWidget *subpanel_windowbutton;
28 GtkWidget **subpanel_activebutton;
29 GtkWidget *subpanel_toplevel;
30 GtkWidget *subpanel_topframe;
31 GtkWidget *subpanel_box;
32 sig_atomic_t *activevar;
33 GtkAccelGroup *group;
35 int active_button_count; /* silliness around the rotating non-alt-shortcut */
36 int active_button_start; /* silliness around the rotating non-alt-shortcut */
37 int rotation[10]; /* silliness around the rotating non-alt-shortcut */
39 sig_atomic_t *mappedvar;
41 postfish_mainpanel *mainpanel;
42 void (*callback)(gpointer in,int);
43 gpointer callback_pointer;
44 } subpanel_generic;
46 extern subpanel_generic *subpanel_create(postfish_mainpanel *mp,
47 GtkWidget *windowbutton,
48 GtkWidget **activebutton,
49 sig_atomic_t *activevar,
50 sig_atomic_t *mappedvar,
51 char *prompt,char **shortcut,
52 int start,int num);
54 extern void subpanel_show_all_but_toplevel(subpanel_generic *s);
56 extern void subpanel_set_active_callback(subpanel_generic *s,gpointer in,void (*callback)(gpointer in,int));