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

« back to all changes in this revision

Viewing changes to gdk/gdktypes.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
/* GDK - The GIMP Drawing Kit
 
2
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
/*
 
21
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
 
22
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 
23
 * files for a list of changes.  These files are distributed with
 
24
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
 
25
 */
 
26
 
 
27
#ifndef __GDK_TYPES_H__
 
28
#define __GDK_TYPES_H__
 
29
 
 
30
/* GDK uses "glib". (And so does GTK).
 
31
 */
 
32
#include <glib.h>
 
33
#include <pango/pango.h>
 
34
#include <glib-object.h>
 
35
 
 
36
#ifdef G_OS_WIN32
 
37
#  ifdef GDK_COMPILATION
 
38
#    define GDKVAR __declspec(dllexport)
 
39
#  else
 
40
#    define GDKVAR extern __declspec(dllimport)
 
41
#  endif
 
42
#else
 
43
#  define GDKVAR extern
 
44
#endif
 
45
 
 
46
/* The system specific file gdkconfig.h contains such configuration
 
47
 * settings that are needed not only when compiling GDK (or GTK)
 
48
 * itself, but also occasionally when compiling programs that use GDK
 
49
 * (or GTK). One such setting is what windowing API backend is in use.
 
50
 */
 
51
#include <gdkconfig.h>
 
52
 
 
53
/* some common magic values */
 
54
#define GDK_CURRENT_TIME     0L
 
55
#define GDK_PARENT_RELATIVE  1L
 
56
 
 
57
 
 
58
 
 
59
G_BEGIN_DECLS
 
60
 
 
61
 
 
62
/* Type definitions for the basic structures.
 
63
 */
 
64
typedef struct _GdkPoint              GdkPoint;
 
65
typedef struct _GdkRectangle          GdkRectangle;
 
66
typedef struct _GdkSegment            GdkSegment;
 
67
typedef struct _GdkSpan               GdkSpan;
 
68
 
 
69
/*
 
70
 * Note that on some platforms the wchar_t type
 
71
 * is not the same as GdkWChar. For instance
 
72
 * on Win32, wchar_t is unsigned short.
 
73
 */
 
74
typedef guint32                     GdkWChar;
 
75
 
 
76
typedef struct _GdkAtom            *GdkAtom;
 
77
 
 
78
#define GDK_ATOM_TO_POINTER(atom) (atom)
 
79
#define GDK_POINTER_TO_ATOM(ptr)  ((GdkAtom)(ptr))
 
80
 
 
81
#define _GDK_MAKE_ATOM(val) ((GdkAtom)GUINT_TO_POINTER(val))
 
82
#define GDK_NONE            _GDK_MAKE_ATOM (0)
 
83
 
 
84
#ifdef GDK_NATIVE_WINDOW_POINTER
 
85
typedef gpointer GdkNativeWindow;
 
86
#else
 
87
typedef guint32 GdkNativeWindow;
 
88
#endif
 
89
 
 
90
/* Forward declarations of commonly used types
 
91
 */
 
92
typedef struct _GdkColor              GdkColor;
 
93
typedef struct _GdkColormap           GdkColormap;
 
94
typedef struct _GdkCursor             GdkCursor;
 
95
typedef struct _GdkFont               GdkFont;
 
96
typedef struct _GdkGC                 GdkGC;
 
97
typedef struct _GdkImage              GdkImage;
 
98
typedef struct _GdkRegion             GdkRegion;
 
99
typedef struct _GdkVisual             GdkVisual;
 
100
 
 
101
typedef struct _GdkDrawable           GdkDrawable;
 
102
typedef struct _GdkDrawable           GdkBitmap;
 
103
typedef struct _GdkDrawable           GdkPixmap;
 
104
typedef struct _GdkDrawable           GdkWindow;
 
105
typedef struct _GdkDisplay            GdkDisplay;
 
106
typedef struct _GdkScreen             GdkScreen;
 
107
 
 
108
typedef enum
 
109
{
 
110
  GDK_LSB_FIRST,
 
111
  GDK_MSB_FIRST
 
112
} GdkByteOrder;
 
113
 
 
114
/* Types of modifiers.
 
115
 */
 
116
typedef enum
 
117
{
 
118
  GDK_SHIFT_MASK    = 1 << 0,
 
119
  GDK_LOCK_MASK     = 1 << 1,
 
120
  GDK_CONTROL_MASK  = 1 << 2,
 
121
  GDK_MOD1_MASK     = 1 << 3,
 
122
  GDK_MOD2_MASK     = 1 << 4,
 
123
  GDK_MOD3_MASK     = 1 << 5,
 
124
  GDK_MOD4_MASK     = 1 << 6,
 
125
  GDK_MOD5_MASK     = 1 << 7,
 
126
  GDK_BUTTON1_MASK  = 1 << 8,
 
127
  GDK_BUTTON2_MASK  = 1 << 9,
 
128
  GDK_BUTTON3_MASK  = 1 << 10,
 
129
  GDK_BUTTON4_MASK  = 1 << 11,
 
130
  GDK_BUTTON5_MASK  = 1 << 12,
 
131
 
 
132
  /* The next few modifiers are used by XKB, so we skip to the end.
 
133
   * Bits 15 - 25 are currently unused. Bit 29 is used internally.
 
134
   */
 
135
  
 
136
  GDK_SUPER_MASK    = 1 << 26,
 
137
  GDK_HYPER_MASK    = 1 << 27,
 
138
  GDK_META_MASK     = 1 << 28,
 
139
  
 
140
  GDK_RELEASE_MASK  = 1 << 30,
 
141
 
 
142
  GDK_MODIFIER_MASK = 0x5c001fff
 
143
} GdkModifierType;
 
144
 
 
145
typedef enum
 
146
{
 
147
  GDK_INPUT_READ       = 1 << 0,
 
148
  GDK_INPUT_WRITE      = 1 << 1,
 
149
  GDK_INPUT_EXCEPTION  = 1 << 2
 
150
} GdkInputCondition;
 
151
 
 
152
typedef enum
 
153
{
 
154
  GDK_OK          = 0,
 
155
  GDK_ERROR       = -1,
 
156
  GDK_ERROR_PARAM = -2,
 
157
  GDK_ERROR_FILE  = -3,
 
158
  GDK_ERROR_MEM   = -4
 
159
} GdkStatus;
 
160
 
 
161
/* We define specific numeric values for these constants,
 
162
 * since old application code may depend on them matching the X values
 
163
 * We don't actually depend on the matchup ourselves.
 
164
 */
 
165
typedef enum
 
166
{
 
167
  GDK_GRAB_SUCCESS         = 0,
 
168
  GDK_GRAB_ALREADY_GRABBED = 1,
 
169
  GDK_GRAB_INVALID_TIME    = 2,
 
170
  GDK_GRAB_NOT_VIEWABLE    = 3,
 
171
  GDK_GRAB_FROZEN          = 4
 
172
} GdkGrabStatus;
 
173
 
 
174
typedef void (*GdkInputFunction) (gpointer          data,
 
175
                                  gint              source,
 
176
                                  GdkInputCondition condition);
 
177
 
 
178
typedef void (*GdkDestroyNotify) (gpointer data);
 
179
 
 
180
struct _GdkPoint
 
181
{
 
182
  gint x;
 
183
  gint y;
 
184
};
 
185
 
 
186
struct _GdkRectangle
 
187
{
 
188
  gint x;
 
189
  gint y;
 
190
  gint width;
 
191
  gint height;
 
192
};
 
193
 
 
194
struct _GdkSegment
 
195
{
 
196
  gint x1;
 
197
  gint y1;
 
198
  gint x2;
 
199
  gint y2;
 
200
};
 
201
 
 
202
struct _GdkSpan
 
203
{
 
204
  gint x;
 
205
  gint y;
 
206
  gint width;
 
207
};
 
208
 
 
209
G_END_DECLS
 
210
 
 
211
 
 
212
#endif /* __GDK_TYPES_H__ */