1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* evolution-shell-component-utils.h |
---|
3 | * |
---|
4 | * Copyright (C) 2000, 2001 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef __EVOLUTION_SHELL_COMPONENT_UTILS_H__ |
---|
22 | #define __EVOLUTION_SHELL_COMPONENT_UTILS_H__ |
---|
23 | |
---|
24 | #include <bonobo/bonobo-ui-component.h> |
---|
25 | #include <gtk/gtkwindow.h> |
---|
26 | |
---|
27 | #ifdef __cplusplus |
---|
28 | extern "C" { |
---|
29 | #pragma } |
---|
30 | #endif /* __cplusplus */ |
---|
31 | |
---|
32 | typedef struct _EPixmap { |
---|
33 | const char *path; |
---|
34 | const char *fname; |
---|
35 | char *pixbuf; |
---|
36 | } EPixmap; |
---|
37 | |
---|
38 | #define E_PIXMAP(path,fname) { (path), (fname), NULL } |
---|
39 | #define E_PIXMAP_END { NULL, NULL, NULL } |
---|
40 | |
---|
41 | /* Takes an array of pixmaps, terminated by E_PIXMAP_END, and loads into uic */ |
---|
42 | void e_pixmaps_update (BonoboUIComponent *uic, EPixmap *pixcache); |
---|
43 | |
---|
44 | void e_activation_failure_dialog (GtkWindow *parent, |
---|
45 | const char *msg, |
---|
46 | const char *oafiid, |
---|
47 | const char *repo_id); |
---|
48 | char *e_get_activation_failure_msg (CORBA_Environment *ev); |
---|
49 | |
---|
50 | #ifdef __cplusplus |
---|
51 | } |
---|
52 | #endif /* __cplusplus */ |
---|
53 | |
---|
54 | #endif /* __EVOLUTION_SHELL_COMPONENT_UTILS_H__ */ |
---|