~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
 *
 
3
 * The contents of this file are subject to the Mozilla Public License
 
4
 * Version 1.1 (the "MPL"); you may not use this file except in
 
5
 * compliance with the MPL.  You may obtain a copy of the MPL at
 
6
 * http://www.mozilla.org/MPL/
 
7
 *
 
8
 * Software distributed under the MPL is distributed on an "AS IS" basis,
 
9
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
 
10
 * for the specific language governing rights and limitations under the
 
11
 * MPL.
 
12
 *
 
13
 * Alternatively, the contents of this file may be used under the
 
14
 * terms of the GNU Library General Public License (the "LGPL"), in
 
15
 * which case the provisions of the LGPL are applicable instead of
 
16
 * those above.  If you wish to allow use of your version of this file
 
17
 * only under the terms of the LGPL and not to allow others to use
 
18
 * your version of this file under the MPL, indicate your decision by
 
19
 * deleting the provisions above and replace them with the notice and
 
20
 * other provisions required by the LGPL.  If you do not delete the
 
21
 * provisions above, a recipient may use your version of this file
 
22
 * under either the MPL or the LGPL.
 
23
 */
 
24
 
 
25
/*
 
26
 * This code is derived from GdkRgb.
 
27
 * For more information on GdkRgb, see http://www.levien.com/gdkrgb/
 
28
 * Raph Levien <raph@acm.org>
 
29
 */
 
30
 
 
31
/* Ported by Christopher Blizzard to Xlib.  With permission from the
 
32
 * original authors of this file, the contents of this file are also
 
33
 * redistributable under the terms of the Mozilla Public license.  For
 
34
 * information about the Mozilla Public License, please see the
 
35
 * license information at http://www.mozilla.org/MPL/
 
36
 */
 
37
 
 
38
/* This code is copyright the following authors:
 
39
 * Raph Levien          <raph@acm.org>
 
40
 * Manish Singh         <manish@gtk.org>
 
41
 * Tim Janik            <timj@gtk.org>
 
42
 * Peter Mattis         <petm@xcf.berkeley.edu>
 
43
 * Spencer Kimball      <spencer@xcf.berkeley.edu>
 
44
 * Josh MacDonald       <jmacd@xcf.berkeley.edu>
 
45
 * Christopher Blizzard <blizzard@redhat.com>
 
46
 * Owen Taylor          <otaylor@redhat.com>
 
47
 * Shawn T. Amundson    <amundson@gtk.org>
 
48
*/
 
49
 
 
50
 
 
51
#ifndef __XLIB_RGB_H__
 
52
#define __XLIB_RGB_H__
 
53
 
 
54
#ifdef __cplusplus
 
55
extern "C" {
 
56
#endif /* __cplusplus */
 
57
 
 
58
#include <X11/Xlib.h>
 
59
#include <X11/Xutil.h>
 
60
 
 
61
#include <glib.h>
 
62
 
 
63
typedef struct _XlibRgbCmap XlibRgbCmap;
 
64
 
 
65
struct _XlibRgbCmap {
 
66
  unsigned int colors[256];
 
67
  unsigned char lut[256]; /* for 8-bit modes */
 
68
};
 
69
 
 
70
void
 
71
xlib_rgb_init (Display *display, Screen *screen);
 
72
void
 
73
xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth);
 
74
 
 
75
unsigned long
 
76
xlib_rgb_xpixel_from_rgb (guint32 rgb);
 
77
 
 
78
void
 
79
xlib_rgb_gc_set_foreground (GC gc, guint32 rgb);
 
80
 
 
81
void
 
82
xlib_rgb_gc_set_background (GC gc, guint32 rgb);
 
83
 
 
84
typedef enum
 
85
{
 
86
  XLIB_RGB_DITHER_NONE,
 
87
  XLIB_RGB_DITHER_NORMAL,
 
88
  XLIB_RGB_DITHER_MAX
 
89
} XlibRgbDither;
 
90
 
 
91
void
 
92
xlib_draw_rgb_image (Drawable drawable,
 
93
                     GC gc,
 
94
                     int x,
 
95
                     int y,
 
96
                     int width,
 
97
                     int height,
 
98
                     XlibRgbDither dith,
 
99
                     unsigned char *rgb_buf,
 
100
                     int rowstride);
 
101
 
 
102
void
 
103
xlib_draw_rgb_image_dithalign (Drawable drawable,
 
104
                               GC gc,
 
105
                               int x,
 
106
                               int y,
 
107
                               int width,
 
108
                               int height,
 
109
                               XlibRgbDither dith,
 
110
                               unsigned char *rgb_buf,
 
111
                               int rowstride,
 
112
                               int xdith,
 
113
                               int ydith);
 
114
 
 
115
void
 
116
xlib_draw_rgb_32_image (Drawable drawable,
 
117
                        GC gc,
 
118
                        int x,
 
119
                        int y,
 
120
                        int width,
 
121
                        int height,
 
122
                        XlibRgbDither dith,
 
123
                        unsigned char *buf,
 
124
                        int rowstride);
 
125
 
 
126
void
 
127
xlib_draw_gray_image (Drawable drawable,
 
128
                      GC gc,
 
129
                      int x,
 
130
                      int y,
 
131
                      int width,
 
132
                      int height,
 
133
                      XlibRgbDither dith,
 
134
                      unsigned char *buf,
 
135
                      int rowstride);
 
136
 
 
137
XlibRgbCmap *
 
138
xlib_rgb_cmap_new (guint32 *colors, int n_colors);
 
139
 
 
140
void
 
141
xlib_rgb_cmap_free (XlibRgbCmap *cmap);
 
142
 
 
143
void
 
144
xlib_draw_indexed_image (Drawable drawable,
 
145
                         GC gc,
 
146
                         int x,
 
147
                         int y,
 
148
                         int width,
 
149
                         int height,
 
150
                         XlibRgbDither dith,
 
151
                         unsigned char *buf,
 
152
                         int rowstride,
 
153
                         XlibRgbCmap *cmap);
 
154
 
 
155
/* Below are some functions which are primarily useful for debugging
 
156
   and experimentation. */
 
157
Bool
 
158
xlib_rgb_ditherable (void);
 
159
 
 
160
void
 
161
xlib_rgb_set_verbose (Bool verbose);
 
162
 
 
163
/* experimental colormap stuff */
 
164
void
 
165
xlib_rgb_set_install (Bool install);
 
166
 
 
167
void
 
168
xlib_rgb_set_min_colors (int min_colors);
 
169
 
 
170
Colormap
 
171
xlib_rgb_get_cmap (void);
 
172
 
 
173
Visual *
 
174
xlib_rgb_get_visual (void);
 
175
 
 
176
XVisualInfo *
 
177
xlib_rgb_get_visual_info (void);
 
178
 
 
179
int
 
180
xlib_rgb_get_depth (void);
 
181
 
 
182
Display *
 
183
xlib_rgb_get_display (void);
 
184
 
 
185
Screen *
 
186
xlib_rgb_get_screen (void);
 
187
 
 
188
#ifdef __cplusplus
 
189
}
 
190
#endif /* __cplusplus */
 
191
 
 
192
 
 
193
#endif /* __XLIB_RGB_H__ */