summaryrefslogtreecommitdiff
path: root/capplets/about-me/e-image-chooser.h
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-08-31 15:40:08 +0800
committerraveit65 <[email protected]>2018-09-09 19:34:07 +0200
commit81d7a317aa4b6bb9bbd9ea4f81d128f29d3c73f4 (patch)
tree7fafbd70896bcfa94b2c06a8749e6e65a77f32e9 /capplets/about-me/e-image-chooser.h
parent28c5512f3e32b6f795f80376e2f1832b6f884a79 (diff)
downloadmate-control-center-81d7a317aa4b6bb9bbd9ea4f81d128f29d3c73f4.tar.bz2
mate-control-center-81d7a317aa4b6bb9bbd9ea4f81d128f29d3c73f4.tar.xz
Add new api for EImageChooser
- add e_image_chooser_set_scaleable(), to allow ImageChooser to change its size according to the size of the picture. - add e_image_chooser_new_with_size(), to create a fixed size EImageChooser.
Diffstat (limited to 'capplets/about-me/e-image-chooser.h')
-rw-r--r--capplets/about-me/e-image-chooser.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/capplets/about-me/e-image-chooser.h b/capplets/about-me/e-image-chooser.h
index 5d034630..420602fe 100644
--- a/capplets/about-me/e-image-chooser.h
+++ b/capplets/about-me/e-image-chooser.h
@@ -23,9 +23,7 @@
#include <gtk/gtk.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+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))
@@ -35,13 +33,10 @@ extern "C" {
typedef struct _EImageChooser EImageChooser;
typedef struct _EImageChooserClass EImageChooserClass;
-typedef struct _EImageChooserPrivate EImageChooserPrivate;
struct _EImageChooser
{
GtkBox parent;
-
- EImageChooserPrivate *priv;
};
struct _EImageChooserClass
@@ -54,17 +49,17 @@ struct _EImageChooserClass
};
-GtkWidget *e_image_chooser_new (void);
-GType e_image_chooser_get_type (void);
+GtkWidget *e_image_chooser_new (void);
+GtkWidget *e_image_chooser_new_with_size (int width, int height);
+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);
+void e_image_chooser_set_scaleable (EImageChooser *chooser, gboolean scaleable);
gboolean e_image_chooser_get_image_data (EImageChooser *chooser, char **data, gsize *data_length);
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* _E_IMAGE_CHOOSER_H_ */