~bratsche/ubuntu/maverick/gtk+2.0/menu-activation-fix

« back to all changes in this revision

Viewing changes to gdk-pixbuf/gdk-pixbuf-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-07-22 21:41:30 UTC
  • mfrom: (1.11.7 upstream) (72.1.16 experimental)
  • Revision ID: james.westby@ubuntu.com-20100722214130-5uzyvpb9g4m0ts2c
Tags: 2.21.5-1ubuntu1
* Merge with Debian experimental, Ubuntu changes:
* debian/control.in:
  - Add introspection build-depends
  - Add Vcs-Bzr link
  - Add gir1.0-gtk-2.0 package
  - libgtk2.0-dev replaces gir-repository-dev
  - Conflict with appmenu-gtk (<< 0.1.3) to prevent menu proxy breakage
* debian/rules:
  - Build with --enable-introspection
  - Add gir1.0-gtk-2.0 package to BINARY_ARCH_PKGS
  - Add dh_girepository call
  - Disable devhelp files
* debian/dh_gtkmodules.in:
  - Remove obsolete script content
* debian/libgtk2.0-0.symbols:
  - Add Ubuntu specific symbols
* debian/libgtk2.0-dev.install.in:
  - Add gir files
* debian/libgtk2.0-doc.install.in
  - Disable devhelp files
* debian/gir1.0-gtk-2.0.install.in
  - Introspection package
* debian/patches/043_menu_proxy.patch
  - Add GtkMenuProxy support for remoting menus.
* debian/patches/062_dnd_menubar.patch:
  - Allow click on menubars for dnd
* debian/patches/063_treeview_almost_fixed.patch:
  - Add an ubuntu-almost-fixed-height-mode property, (required for
    software-center)
* debian/patches/071_no_offscreen_widgets_grabbing.patch:
  - Don't let offscreen widgets do grabbing
* debian/patches/072_indicator_menu_update.patch:
  - change by Cody Russell to send an update event on menu changes,
    should make the bluetooth indicator refresh correctly
* debian/patches/091_bugzilla_tooltip_refresh.patch:
  - Upstream bugzilla change to have better looking tooltips the gtk theme
    need to set "new-tooltip-style" to use those
* debian/watch:
  - Watch for unstable versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
 
/* GdkPixbuf library - Private declarations
3
 
 *
4
 
 * Copyright (C) 1999 The Free Software Foundation
5
 
 *
6
 
 * Authors: Mark Crichton <crichton@gimp.org>
7
 
 *          Miguel de Icaza <miguel@gnu.org>
8
 
 *          Federico Mena-Quintero <federico@gimp.org>
9
 
 *          Havoc Pennington <hp@redhat.com>
10
 
 *
11
 
 * This library is free software; you can redistribute it and/or
12
 
 * modify it under the terms of the GNU Lesser General Public
13
 
 * License as published by the Free Software Foundation; either
14
 
 * version 2 of the License, or (at your option) any later version.
15
 
 *
16
 
 * This library is distributed in the hope that it will be useful,
17
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19
 
 * Lesser General Public License for more details.
20
 
 *
21
 
 * You should have received a copy of the GNU Lesser General Public
22
 
 * License along with this library; if not, write to the
23
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24
 
 * Boston, MA 02111-1307, USA.
25
 
 */
26
 
 
27
 
#ifndef GDK_PIXBUF_PRIVATE_H
28
 
#define GDK_PIXBUF_PRIVATE_H
29
 
 
30
 
#include "gdk-pixbuf.h"
31
 
#include "gdk-pixbuf-i18n.h"
32
 
#include <stdio.h>
33
 
 
34
 
 
35
 
 
36
 
typedef struct _GdkPixbufClass GdkPixbufClass;
37
 
 
38
 
#define GDK_PIXBUF_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF, GdkPixbufClass))
39
 
#define GDK_IS_PIXBUF_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF))
40
 
#define GDK_PIXBUF_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF, GdkPixbufClass))
41
 
 
42
 
/* Private part of the GdkPixbuf structure */
43
 
struct _GdkPixbuf {
44
 
        GObject parent_instance;
45
 
 
46
 
        /* Color space */
47
 
        GdkColorspace colorspace;
48
 
 
49
 
        /* Number of channels, alpha included */
50
 
        int n_channels;
51
 
 
52
 
        /* Bits per channel */
53
 
        int bits_per_sample;
54
 
 
55
 
        /* Size */
56
 
        int width, height;
57
 
 
58
 
        /* Offset between rows */
59
 
        int rowstride;
60
 
 
61
 
        /* The pixel array */
62
 
        guchar *pixels;
63
 
 
64
 
        /* Destroy notification function; it is supposed to free the pixel array */
65
 
        GdkPixbufDestroyNotify destroy_fn;
66
 
 
67
 
        /* User data for the destroy notification function */
68
 
        gpointer destroy_fn_data;
69
 
 
70
 
        /* Do we have an alpha channel? */
71
 
        guint has_alpha : 1;
72
 
};
73
 
 
74
 
struct _GdkPixbufClass {
75
 
        GObjectClass parent_class;
76
 
 
77
 
};
78
 
 
79
 
#ifdef GDK_PIXBUF_ENABLE_BACKEND
80
 
 
81
 
gboolean _gdk_pixbuf_lock (GdkPixbufModule *image_module);
82
 
void _gdk_pixbuf_unlock (GdkPixbufModule *image_module);
83
 
 
84
 
GdkPixbufModule *_gdk_pixbuf_get_module (guchar *buffer, guint size,
85
 
                                         const gchar *filename,
86
 
                                         GError **error);
87
 
GdkPixbufModule *_gdk_pixbuf_get_named_module (const char *name,
88
 
                                               GError **error);
89
 
gboolean _gdk_pixbuf_load_module (GdkPixbufModule *image_module,
90
 
                                  GError **error);
91
 
 
92
 
GdkPixbuf *_gdk_pixbuf_generic_image_load (GdkPixbufModule *image_module,
93
 
                                           FILE *f,
94
 
                                           GError **error);
95
 
 
96
 
GdkPixbufFormat *_gdk_pixbuf_get_format (GdkPixbufModule *image_module);
97
 
 
98
 
#endif /* GDK_PIXBUF_ENABLE_BACKEND */
99
 
 
100
 
#endif /* GDK_PIXBUF_PRIVATE_H */
101
 
 
102