Revision 20910,
1.9 KB
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r20909,
which included commits to RCS files with non-trunk default branches.
|
Rev | Line | |
---|
[18371] | 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 | |
---|
[20909] | 25 | #define MAX_EYES 1000 |
---|
[18371] | 26 | typedef struct |
---|
| 27 | { |
---|
| 28 | GtkWidget *pbox; |
---|
| 29 | |
---|
| 30 | gint selected_row; |
---|
| 31 | } EyesPropertyBox; |
---|
| 32 | |
---|
| 33 | typedef struct |
---|
| 34 | { |
---|
| 35 | /* Applet */ |
---|
[20909] | 36 | GtkWidget *about_dialog; |
---|
[18371] | 37 | PanelApplet *applet; |
---|
[20909] | 38 | GtkWidget *vbox; |
---|
[18371] | 39 | GtkWidget *hbox; |
---|
[20909] | 40 | GtkWidget **eyes; |
---|
[18371] | 41 | guint timeout_id; |
---|
[20909] | 42 | gint pointer_last_x; |
---|
| 43 | gint pointer_last_y; |
---|
[18371] | 44 | |
---|
| 45 | /* Theme */ |
---|
| 46 | GdkPixbuf *eye_image; |
---|
| 47 | GdkPixbuf *pupil_image; |
---|
| 48 | gchar *theme_dir; |
---|
| 49 | gchar *theme_name; |
---|
| 50 | gchar *eye_filename; |
---|
| 51 | gchar *pupil_filename; |
---|
| 52 | gint num_eyes; |
---|
| 53 | gint eye_height; |
---|
| 54 | gint eye_width; |
---|
| 55 | gint pupil_height; |
---|
| 56 | gint pupil_width; |
---|
| 57 | gint wall_thickness; |
---|
| 58 | |
---|
| 59 | /* Properties */ |
---|
| 60 | EyesPropertyBox prop_box; |
---|
| 61 | |
---|
| 62 | /* Tooltip */ |
---|
| 63 | GtkTooltips *tooltips; |
---|
| 64 | } EyesApplet; |
---|
| 65 | |
---|
| 66 | /* eyes.c */ |
---|
| 67 | void setup_eyes (EyesApplet *eyes_applet); |
---|
| 68 | |
---|
| 69 | void destroy_eyes (EyesApplet *eyes_applet); |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | /* theme.c */ |
---|
[20909] | 73 | void theme_dirs_create (void); |
---|
[18371] | 74 | |
---|
[20909] | 75 | int load_theme (EyesApplet *eyes_applet, |
---|
| 76 | const gchar *theme_dir); |
---|
| 77 | |
---|
[18371] | 78 | void properties_cb (BonoboUIComponent *uic, |
---|
| 79 | EyesApplet *eyes_applet, |
---|
| 80 | const gchar *verbname); |
---|
| 81 | |
---|
| 82 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.