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

« back to all changes in this revision

Viewing changes to gdk/gdk.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_H__
 
28
#define __GDK_H__
 
29
 
 
30
#include <gdk/gdkcairo.h>
 
31
#include <gdk/gdkcolor.h>
 
32
#include <gdk/gdkcursor.h>
 
33
#include <gdk/gdkdisplay.h>
 
34
#include <gdk/gdkdnd.h>
 
35
#include <gdk/gdkdrawable.h>
 
36
#include <gdk/gdkenumtypes.h>
 
37
#include <gdk/gdkevents.h>
 
38
#include <gdk/gdkfont.h>
 
39
#include <gdk/gdkgc.h>
 
40
#include <gdk/gdkimage.h>
 
41
#include <gdk/gdkinput.h>
 
42
#include <gdk/gdkkeys.h>
 
43
#include <gdk/gdkdisplaymanager.h>
 
44
#include <gdk/gdkpango.h>
 
45
#include <gdk/gdkpixbuf.h>
 
46
#include <gdk/gdkpixmap.h>
 
47
#include <gdk/gdkproperty.h>
 
48
#include <gdk/gdkregion.h>
 
49
#include <gdk/gdkrgb.h>
 
50
#include <gdk/gdkscreen.h>
 
51
#include <gdk/gdkselection.h>
 
52
#include <gdk/gdkspawn.h>
 
53
#include <gdk/gdktypes.h>
 
54
#include <gdk/gdkvisual.h>
 
55
#include <gdk/gdkwindow.h>
 
56
 
 
57
G_BEGIN_DECLS
 
58
 
 
59
 
 
60
/* Initialization, exit and events
 
61
 */
 
62
#define   GDK_PRIORITY_EVENTS           (G_PRIORITY_DEFAULT)
 
63
void      gdk_parse_args                (gint           *argc,
 
64
                                         gchar        ***argv);
 
65
void      gdk_init                      (gint           *argc,
 
66
                                         gchar        ***argv);
 
67
gboolean  gdk_init_check                (gint           *argc,
 
68
                                         gchar        ***argv);
 
69
void gdk_add_option_entries_libgtk_only (GOptionGroup *group);
 
70
void gdk_pre_parse_libgtk_only          (void);
 
71
 
 
72
#ifndef GDK_DISABLE_DEPRECATED
 
73
void      gdk_exit                      (gint            error_code);
 
74
#endif /* GDK_DISABLE_DEPRECATED */
 
75
gchar*    gdk_set_locale                (void);
 
76
 
 
77
G_CONST_RETURN char *gdk_get_program_class (void);
 
78
void                 gdk_set_program_class (const char *program_class);
 
79
 
 
80
/* Push and pop error handlers for X errors
 
81
 */
 
82
void      gdk_error_trap_push           (void);
 
83
gint      gdk_error_trap_pop            (void);
 
84
 
 
85
#ifndef GDK_DISABLE_DEPRECATED
 
86
void      gdk_set_use_xshm              (gboolean        use_xshm);
 
87
gboolean  gdk_get_use_xshm              (void);
 
88
#endif /* GDK_DISABLE_DEPRECATED */
 
89
 
 
90
gchar*                    gdk_get_display               (void);
 
91
G_CONST_RETURN gchar*     gdk_get_display_arg_name      (void);
 
92
 
 
93
#if !defined (GDK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
 
94
/* Used by gtk_input_add_full () */
 
95
gint gdk_input_add_full   (gint              source,
 
96
                           GdkInputCondition condition,
 
97
                           GdkInputFunction  function,
 
98
                           gpointer          data,
 
99
                           GdkDestroyNotify  destroy);
 
100
#endif /* !GDK_DISABLE_DEPRECATED || GTK_COMPILATION */
 
101
#ifndef GDK_DISABLE_DEPRECATED
 
102
gint gdk_input_add        (gint              source,
 
103
                           GdkInputCondition condition,
 
104
                           GdkInputFunction  function,
 
105
                           gpointer          data);
 
106
void gdk_input_remove     (gint              tag);
 
107
#endif /* GDK_DISABLE_DEPRECATED */
 
108
 
 
109
GdkGrabStatus gdk_pointer_grab       (GdkWindow    *window,
 
110
                                      gboolean      owner_events,
 
111
                                      GdkEventMask  event_mask,
 
112
                                      GdkWindow    *confine_to,
 
113
                                      GdkCursor    *cursor,
 
114
                                      guint32       time_);
 
115
GdkGrabStatus gdk_keyboard_grab      (GdkWindow    *window,
 
116
                                      gboolean      owner_events,
 
117
                                      guint32       time_);
 
118
 
 
119
gboolean gdk_pointer_grab_info_libgtk_only (GdkDisplay *display,
 
120
                                            GdkWindow **grab_window,
 
121
                                            gboolean   *owner_events);
 
122
gboolean gdk_keyboard_grab_info_libgtk_only (GdkDisplay *display,
 
123
                                             GdkWindow **grab_window,
 
124
                                             gboolean   *owner_events);
 
125
 
 
126
#ifndef GDK_MULTIHEAD_SAFE
 
127
void          gdk_pointer_ungrab     (guint32       time_);
 
128
void          gdk_keyboard_ungrab    (guint32       time_);
 
129
gboolean      gdk_pointer_is_grabbed (void);
 
130
 
 
131
gint gdk_screen_width  (void) G_GNUC_CONST;
 
132
gint gdk_screen_height (void) G_GNUC_CONST;
 
133
 
 
134
gint gdk_screen_width_mm  (void) G_GNUC_CONST;
 
135
gint gdk_screen_height_mm (void) G_GNUC_CONST;
 
136
 
 
137
void gdk_beep (void);
 
138
#endif /* GDK_MULTIHEAD_SAFE */
 
139
 
 
140
void gdk_flush (void);
 
141
 
 
142
#ifndef GDK_MULTIHEAD_SAFE
 
143
void gdk_set_double_click_time             (guint       msec);
 
144
#endif
 
145
 
 
146
/* Rectangle utilities
 
147
 */
 
148
gboolean gdk_rectangle_intersect (GdkRectangle *src1,
 
149
                                  GdkRectangle *src2,
 
150
                                  GdkRectangle *dest);
 
151
void     gdk_rectangle_union     (GdkRectangle *src1,
 
152
                                  GdkRectangle *src2,
 
153
                                  GdkRectangle *dest);
 
154
 
 
155
GType gdk_rectangle_get_type (void) G_GNUC_CONST;
 
156
 
 
157
#define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ())
 
158
 
 
159
/* Conversion functions between wide char and multibyte strings. 
 
160
 */
 
161
#ifndef GDK_DISABLE_DEPRECATED
 
162
gchar     *gdk_wcstombs          (const GdkWChar   *src);
 
163
gint       gdk_mbstowcs          (GdkWChar         *dest,
 
164
                                  const gchar      *src,
 
165
                                  gint              dest_max);
 
166
#endif
 
167
 
 
168
/* Miscellaneous */
 
169
#ifndef GDK_MULTIHEAD_SAFE
 
170
gboolean gdk_event_send_client_message      (GdkEvent       *event,
 
171
                                             GdkNativeWindow winid);
 
172
void     gdk_event_send_clientmessage_toall (GdkEvent  *event);
 
173
#endif
 
174
gboolean gdk_event_send_client_message_for_display (GdkDisplay *display,
 
175
                                                    GdkEvent       *event,
 
176
                                                    GdkNativeWindow winid);
 
177
 
 
178
void gdk_notify_startup_complete (void);
 
179
 
 
180
/* Threading
 
181
 */
 
182
 
 
183
#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION)
 
184
GDKVAR GMutex *gdk_threads_mutex; /* private */
 
185
#endif
 
186
 
 
187
GDKVAR GCallback gdk_threads_lock;
 
188
GDKVAR GCallback gdk_threads_unlock;
 
189
 
 
190
void     gdk_threads_enter                (void);
 
191
void     gdk_threads_leave                (void);
 
192
void     gdk_threads_init                 (void);
 
193
void     gdk_threads_set_lock_functions   (GCallback enter_fn,
 
194
                                           GCallback leave_fn);
 
195
 
 
196
#ifdef  G_THREADS_ENABLED
 
197
#  define GDK_THREADS_ENTER()   G_STMT_START {  \
 
198
      if (gdk_threads_lock)                     \
 
199
        (*gdk_threads_lock) ();                 \
 
200
   } G_STMT_END
 
201
#  define GDK_THREADS_LEAVE()   G_STMT_START {  \
 
202
      if (gdk_threads_unlock)                   \
 
203
        (*gdk_threads_unlock) ();               \
 
204
   } G_STMT_END
 
205
#else   /* !G_THREADS_ENABLED */
 
206
#  define GDK_THREADS_ENTER()
 
207
#  define GDK_THREADS_LEAVE()
 
208
#endif  /* !G_THREADS_ENABLED */
 
209
 
 
210
G_END_DECLS
 
211
 
 
212
 
 
213
#endif /* __GDK_H__ */