~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/core/gimppattern.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-06 13:30:41 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: james.westby@ubuntu.com-20081006133041-3panbkcanaymfsmp
Tags: upstream-2.6.0
ImportĀ upstreamĀ versionĀ 2.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "gimp-intl.h"
35
35
 
36
36
 
37
 
static void       gimp_pattern_finalize        (GObject       *object);
38
 
 
39
 
static gint64     gimp_pattern_get_memsize     (GimpObject    *object,
40
 
                                                gint64        *gui_size);
41
 
 
42
 
static gboolean   gimp_pattern_get_size        (GimpViewable  *viewable,
43
 
                                                gint          *width,
44
 
                                                gint          *height);
45
 
static TempBuf  * gimp_pattern_get_new_preview (GimpViewable  *viewable,
46
 
                                                GimpContext   *context,
47
 
                                                gint           width,
48
 
                                                gint           height);
49
 
static gchar    * gimp_pattern_get_description (GimpViewable  *viewable,
50
 
                                                gchar        **tooltip);
51
 
static gchar    * gimp_pattern_get_extension   (GimpData      *data);
52
 
static GimpData * gimp_pattern_duplicate       (GimpData      *data);
 
37
static void          gimp_pattern_finalize        (GObject       *object);
 
38
 
 
39
static gint64        gimp_pattern_get_memsize     (GimpObject    *object,
 
40
                                                   gint64        *gui_size);
 
41
 
 
42
static gboolean      gimp_pattern_get_size        (GimpViewable  *viewable,
 
43
                                                   gint          *width,
 
44
                                                   gint          *height);
 
45
static TempBuf     * gimp_pattern_get_new_preview (GimpViewable  *viewable,
 
46
                                                   GimpContext   *context,
 
47
                                                   gint           width,
 
48
                                                   gint           height);
 
49
static gchar       * gimp_pattern_get_description (GimpViewable  *viewable,
 
50
                                                   gchar        **tooltip);
 
51
 
 
52
static const gchar * gimp_pattern_get_extension   (GimpData      *data);
 
53
static GimpData    * gimp_pattern_duplicate       (GimpData      *data);
53
54
 
54
55
 
55
56
G_DEFINE_TYPE (GimpPattern, gimp_pattern, GIMP_TYPE_DATA)
105
106
  GimpPattern *pattern = GIMP_PATTERN (object);
106
107
  gint64       memsize = 0;
107
108
 
108
 
  if (pattern->mask)
109
 
    memsize += temp_buf_get_memsize (pattern->mask);
 
109
  memsize += temp_buf_get_memsize (pattern->mask);
110
110
 
111
111
  return memsize + GIMP_OBJECT_CLASS (parent_class)->get_memsize (object,
112
112
                                                                  gui_size);
161
161
                          pattern->mask->height);
162
162
}
163
163
 
164
 
static gchar *
 
164
static const gchar *
165
165
gimp_pattern_get_extension (GimpData *data)
166
166
{
167
167
  return GIMP_PATTERN_FILE_EXTENSION;