aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-image-chooser.h
blob: 0e780266835651a7e6c293085bf8236d46a44dd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>  
 *
 *
 * Authors:
 *      Chris Toshok <toshok@ximian.com>
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifndef _E_IMAGE_CHOOSER_H_
#define _E_IMAGE_CHOOSER_H_

#include <gtk/gtk.h>

G_BEGIN_DECLS

#define E_TYPE_IMAGE_CHOOSER            (e_image_chooser_get_type ())
#define E_IMAGE_CHOOSER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_IMAGE_CHOOSER, EImageChooser))
#define E_IMAGE_CHOOSER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_IMAGE_CHOOSER, EImageChooserClass))
#define E_IS_IMAGE_CHOOSER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_IMAGE_CHOOSER))
#define E_IS_IMAGE_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_IMAGE_CHOOSER))

typedef struct _EImageChooser        EImageChooser;
typedef struct _EImageChooserClass   EImageChooserClass;
typedef struct _EImageChooserPrivate EImageChooserPrivate;

struct _EImageChooser
{
    GtkVBox parent;

    EImageChooserPrivate *priv;
};

struct _EImageChooserClass
{
    GtkVBoxClass parent_class;

    /* signals */
    void (*changed) (EImageChooser *chooser);


};

GtkWidget *e_image_chooser_new      (void);
GType      e_image_chooser_get_type (void);

gboolean   e_image_chooser_set_from_file  (EImageChooser *chooser, const char *filename);
gboolean   e_image_chooser_set_image_data (EImageChooser *chooser, char *data, gsize data_length);
void       e_image_chooser_set_editable   (EImageChooser *chooser, gboolean editable);

gboolean   e_image_chooser_get_image_data (EImageChooser *chooser, char **data, gsize *data_length);

#endif /* _E_IMAGE_CHOOSER_H_ */
er (stdbool.h) for the use withnetchild2005-02-132-1/+7 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-011-3/+1 * Update to 8.1.026.netchild2004-12-133-65/+37 * - Update to 8.1.024.marius2004-11-177-104/+163 * o Preliminary update to 8.1.022:marius2004-11-0311-733/+218 * Update to 8.0.066p070.1.netchild2004-07-242-3/+3 * Update to 8.0.066p069.1.netchild2004-06-302-3/+3 * Change the way we handle the version numbering to be more correctnetchild2004-06-031-2/+2 * Update to 8.0.066.p067.1.netchild2004-06-032-2/+3 * icc 8.0.066 now adds "-m elf_i386" in some circumstances. Remove this partnetchild2004-05-072-1/+4 * Update to 8.0.066.netchild2004-04-302-5/+3 * Update to 8.0.058.p063.1.netchild2004-03-273-6/+18 * Update to 8.0.058.p061.netchild2004-03-176-30/+60 * - some base system headers know about icc now, don't override themnetchild2004-03-132-5/+18 * Update to 8.0.058.p060.netchild2004-02-263-4/+4 * icc & icc7:netchild2004-02-011-46/+46 * - update to 8.0.058.p059netchild2004-01-302-5/+6 * Use the CPIO macro defined in bsd.port.mk.trevor2004-01-221-1/+0 * - update to 8.0.058netchild2004-01-192-10/+8 * Update to 8.0.055.p057.netchild2004-01-1127-2439/+2812 * - use the libc cxa support on a recent -current instead of the hacknetchild2003-12-222-106/+85 * - Update to 7.1.034.netchild2003-12-133-10/+6 * s/rpm2cpio/rpm2cpio.pl/ after the recent update of archivers/rpm2cpio (thenetchild2003-12-121-2/+2 * Update to 7.1.033.netchild2003-12-082-8/+8 * correct the syntax of the warning -> error optionsnetchild2003-11-141-1/+1 * - Update to 7.1.032.netchild2003-11-143-150/+67 * Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.trevor2003-11-131-2/+2 * Add a paragraph about Intels support in the post-install message.netchild2003-11-111-0/+5 * - Fix icc and icpc scripts (variable overriding) [1]netchild2003-10-223-16/+31 * Update to 7.1.031.netchild2003-10-212-9/+9 * Reword IGNORE text.netchild2003-10-111-1/+1 * Commit the correct md5 sum.netchild2003-10-041-1/+1 * Update to 7.1.030.netchild2003-10-032-8/+8 * Update to 7.1.029.netchild2003-09-242-8/+8 * Update to 7.1.028.netchild2003-09-063-15/+14 * Fix __sigsetjmp linking problem.netchild2003-08-221-2/+3 * - Update to 7.1.027.netchild2003-08-213-8/+12 * - Update to 7.1.025.netchild2003-08-152-9/+27 * Update to 7.1.021.netchild2003-07-113-8/+9 * Update to 7.1.019.netchild2003-06-263-8/+10 * Fix the "make fetch" help string.netchild2003-06-161-1/+1 * Update to 7.1.018.netchild2003-06-123-10/+10 * Update to 7.1.017.netchild2003-06-052-9/+9 * Update MD5 after the file changed on the server (IA64 license-check binarynetchild2003-05-091-1/+1 * Update to 7.1.014.netchild2003-05-062-9/+9 * When trying to link dynamic libraries with dependancies, e.g:netchild2003-04-262-0/+5 * Update to 7.1.011.netchild2003-04-242-10/+9 * - back out special '-I' handling, it causes problems with the stlport [1]netchild2003-04-183-5/+13 * The new version of icc adds -I include paths before the standard includenetchild2003-04-023-2/+3 * - Update to 7.1.006.netchild2003-03-286-288/+685 * Clear moonlight beckons.ade2003-03-072-1/+1 * Update to 7.0.086.netchild2003-03-062-8/+8 * Update to 7.0.083.netchild2003-02-152-8/+8 * - update to 7.0.082netchild2003-02-1010-21/+78 * Remove the "warning -> error" options for excessive function arguments,netchild2003-01-131-1/+2 * Add missing files for the 7.0.078 update.netchild2003-01-1214-0/+1047 * Update icc to 7.0.078.netchild2003-01-129-1129/+1131 * - fix typo in messagenetchild2002-11-131-2/+3 * - mark BROKEN when linux_devtools or ifc is installednetchild2002-11-091-2/+7 * - Keep up with changes on -current (__sF, elf_i386 -> elf_i386_fbsd).netchild2002-11-084-22/+95 * - link libc_pic.a when compiling with "-KPIC -static"netchild2002-09-226-18/+141 * Add another possible download site (it isn't guaranteed that te file isnetchild2002-09-201-1/+1 * - Update to 6.0.1.304.netchild2002-09-207-48/+65 * - C++ support: fix to work also on -current, work around broken exceptionnetchild2002-09-1711-156/+635 * Fix syntax error in the no distfile case.netchild2002-08-221-1/+1 * - add category: develnetchild2002-08-207-85/+236 * 1) The new icc doesn't respect icc.cfg, solve this issue.netchild2002-08-052-3/+10 * Document the bad interaction with the linux-devtools port.netchild2002-07-151-0/+3 * Update to 6.0.159.netchild2002-07-132-9/+9 * Add another download location.netchild2002-07-021-1/+1 * Get the IGNORE warning working. ${DISTFILES} cannot be referenced inknu2002-06-141-1/+1 * - update to icc 6.0.149netchild2002-06-083-15/+17 * Explict dependancy on version 7 of linux_base is not needed anymore.obrien2002-05-281-2/+1 * Oops, last commit was an old version, this one is at least able to linknetchild2002-05-141-2/+3 * Wrapper script for ld, needed to link native binaries.netchild2002-05-141-0/+65 * 1) Document some steps in the targets of the Makefile.netchild2002-05-142-3/+19