source: trunk/third/gnome-applets/geyes/geyes.h @ 18372

Revision 18372, 1.8 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18371, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Copyright (C) 1999 Dave Camp <dave@davec.dhs.org>
3 * 
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 * 
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 * 
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 * 
18 */
19
20#ifndef __GEYES_H__
21#define __GEYES_H__
22#include <gnome.h>
23#include <panel-applet.h>
24
25#define MAX_EYES 5
26typedef struct
27{
28        GtkWidget *pbox;
29   
30        gint selected_row;
31} EyesPropertyBox;
32
33typedef struct
34{
35        /* Applet */
36        PanelApplet *applet;
37        GtkWidget   *fixed;
38        GtkWidget   *hbox;
39        GtkWidget   *eyes[MAX_EYES];
40        guint        timeout_id;
41
42        /* Theme */
43        GdkPixbuf *eye_image;
44        GdkPixbuf *pupil_image;
45        gchar *theme_dir;
46        gchar *theme_name;
47        gchar *eye_filename;
48        gchar *pupil_filename;
49        gint num_eyes;
50        gint eye_height;
51        gint eye_width;
52        gint pupil_height;
53        gint pupil_width;
54        gint wall_thickness;
55
56        /* Properties */
57        EyesPropertyBox prop_box;
58
59        /* Tooltip */
60        GtkTooltips *tooltips;
61} EyesApplet;
62
63/* eyes.c */
64void setup_eyes   (EyesApplet *eyes_applet);
65
66void destroy_eyes (EyesApplet *eyes_applet);
67
68
69/* theme.c */
70void load_theme    (EyesApplet        *eyes_applet,
71                    const gchar       *theme_dir);
72
73void properties_cb (BonoboUIComponent *uic,
74                    EyesApplet        *eyes_applet,
75                    const gchar       *verbname);
76
77#endif
Note: See TracBrowser for help on using the repository browser.