~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/dialogs/eek-preview.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *
21
21
 * The Initial Developer of the Original Code is
22
22
 * Jon A. Cruz.
23
 
 * Portions created by the Initial Developer are Copyright (C) 2005
 
23
 * Portions created by the Initial Developer are Copyright (C) 2005-2008
24
24
 * the Initial Developer. All Rights Reserved.
25
25
 *
26
26
 * Contributor(s):
68
68
} ViewType;
69
69
 
70
70
typedef enum {
 
71
    PREVIEW_SIZE_TINY = 0,
 
72
    PREVIEW_SIZE_SMALL,
 
73
    PREVIEW_SIZE_MEDIUM,
 
74
    PREVIEW_SIZE_BIG,
 
75
    PREVIEW_SIZE_BIGGER,
 
76
    PREVIEW_SIZE_HUGE
 
77
} PreviewSize;
 
78
 
 
79
typedef enum {
71
80
  PREVIEW_LINK_NONE = 0,
72
81
  PREVIEW_LINK_IN = 1,
73
82
  PREVIEW_LINK_OUT = 2,
93
102
 
94
103
    PreviewStyle _prevstyle;
95
104
    ViewType _view;
96
 
    GtkIconSize _size;
 
105
    PreviewSize _size;
 
106
    guint _ratio;
97
107
    guint _linked;
98
108
};
99
109
 
108
118
GType      eek_preview_get_type(void) G_GNUC_CONST;
109
119
GtkWidget* eek_preview_new(void);
110
120
 
111
 
void eek_preview_set_details( EekPreview* splat, PreviewStyle prevstyle, ViewType view, GtkIconSize size );
 
121
void eek_preview_set_details( EekPreview* splat, PreviewStyle prevstyle, ViewType view, PreviewSize size, guint ratio );
112
122
void eek_preview_set_color( EekPreview* splat, int r, int g, int b );
113
123
 
114
124
void eek_preview_set_linked( EekPreview* splat, LinkType link );
117
127
gboolean eek_preview_get_focus_on_click( EekPreview* preview );
118
128
void eek_preview_set_focus_on_click( EekPreview* preview, gboolean focus_on_click );
119
129
 
 
130
void eek_preview_set_size_mappings( guint count, GtkIconSize const* sizes );
 
131
 
120
132
G_END_DECLS
121
133
 
122
134