more simplification, got gtk.c under 3k lines
[gcalctool.git] / gcalctool / dsdefs.h
blob345f2f7a7e66ff49746f8c47baed62067eb8223c
2 /* $Header$
4 * External definitions needed by calctool from the libdeskset, libguide
5 * and libguidexv include files.
7 * Copyright (c) 1987-2007 Sun Microsystems, Inc. All Rights Reserved.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
12 * any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 * 02111-1307, USA.
25 #ifndef __DSDEFS_H__
26 #define __DSDEFS_H__
28 #include <stdio.h>
29 #include <gtk/gtk.h>
31 /* Definitions taken from .../libdeskset/<various>.h */
33 /* Location ops for ds_position_popup(). */
35 enum ds_location_op {
36 DS_POPUP_RIGHT, /* Place popup to right of baseframe */
37 DS_POPUP_LEFT, /* Place popup to left of baseframe */
38 DS_POPUP_ABOVE, /* Place popup above baseframe */
39 DS_POPUP_BELOW, /* Place popup below baseframe */
40 DS_POPUP_LOR, /* Place popup to right or left of baseframe */
41 DS_POPUP_AOB, /* Place popup above or below baseframe */
42 DS_POPUP_CENTERED /* Center popup within baseframe */
45 int ds_position_popup(GtkWidget *base, GtkWidget *popup,
46 enum ds_location_op location_op);
48 #endif /* __DSDEFS_H__ */