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

« back to all changes in this revision

Viewing changes to gtk/gtkimcontext.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
/* GTK - The GIMP Toolkit
 
2
 * Copyright (C) 2000 Red Hat Software
 
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
#ifndef __GTK_IM_CONTEXT_H__
 
21
#define __GTK_IM_CONTEXT_H__
 
22
 
 
23
#include <gdk/gdk.h>
 
24
#include <gtk/gtkobject.h>
 
25
#include <pango/pango.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define GTK_TYPE_IM_CONTEXT              (gtk_im_context_get_type ())
 
30
#define GTK_IM_CONTEXT(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContext))
 
31
#define GTK_IM_CONTEXT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT, GtkIMContextClass))
 
32
#define GTK_IS_IM_CONTEXT(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT))
 
33
#define GTK_IS_IM_CONTEXT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT))
 
34
#define GTK_IM_CONTEXT_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContextClass))
 
35
 
 
36
 
 
37
typedef struct _GtkIMContext       GtkIMContext;
 
38
typedef struct _GtkIMContextClass  GtkIMContextClass;
 
39
 
 
40
struct _GtkIMContext
 
41
{
 
42
  GObject parent_instance;
 
43
};
 
44
 
 
45
struct _GtkIMContextClass
 
46
{
 
47
  /* Yes, this should be GObjectClass, be we can't fix it without breaking
 
48
   * binary compatibility - see bug #90935
 
49
   */
 
50
  GtkObjectClass parent_class;
 
51
 
 
52
  /* Signals */
 
53
  void     (*preedit_start)        (GtkIMContext *context);
 
54
  void     (*preedit_end)          (GtkIMContext *context);
 
55
  void     (*preedit_changed)      (GtkIMContext *context);
 
56
  void     (*commit)               (GtkIMContext *context, const gchar *str);
 
57
  gboolean (*retrieve_surrounding) (GtkIMContext *context);
 
58
  gboolean (*delete_surrounding)   (GtkIMContext *context,
 
59
                                    gint          offset,
 
60
                                    gint          n_chars);
 
61
 
 
62
  /* Virtual functions */
 
63
  void     (*set_client_window)   (GtkIMContext   *context,
 
64
                                   GdkWindow      *window);
 
65
  void     (*get_preedit_string)  (GtkIMContext   *context,
 
66
                                   gchar         **str,
 
67
                                   PangoAttrList **attrs,
 
68
                                   gint           *cursor_pos);
 
69
  gboolean (*filter_keypress)     (GtkIMContext   *context,
 
70
                                   GdkEventKey    *event);
 
71
  void     (*focus_in)            (GtkIMContext   *context);
 
72
  void     (*focus_out)           (GtkIMContext   *context);
 
73
  void     (*reset)               (GtkIMContext   *context);
 
74
  void     (*set_cursor_location) (GtkIMContext   *context,
 
75
                                   GdkRectangle   *area);
 
76
  void     (*set_use_preedit)     (GtkIMContext   *context,
 
77
                                   gboolean        use_preedit);
 
78
  void     (*set_surrounding)     (GtkIMContext   *context,
 
79
                                   const gchar    *text,
 
80
                                   gint            len,
 
81
                                   gint            cursor_index);
 
82
  gboolean (*get_surrounding)     (GtkIMContext   *context,
 
83
                                   gchar         **text,
 
84
                                   gint           *cursor_index);
 
85
 
 
86
  /* Padding for future expansion */
 
87
  void (*_gtk_reserved1) (void);
 
88
  void (*_gtk_reserved2) (void);
 
89
  void (*_gtk_reserved3) (void);
 
90
  void (*_gtk_reserved4) (void);
 
91
  void (*_gtk_reserved5) (void);
 
92
  void (*_gtk_reserved6) (void);
 
93
};
 
94
 
 
95
GType    gtk_im_context_get_type            (void) G_GNUC_CONST;
 
96
 
 
97
void     gtk_im_context_set_client_window   (GtkIMContext   *context,
 
98
                                             GdkWindow      *window);
 
99
void     gtk_im_context_get_preedit_string  (GtkIMContext   *context,
 
100
                                             gchar         **str,
 
101
                                             PangoAttrList **attrs,
 
102
                                             gint           *cursor_pos);
 
103
gboolean gtk_im_context_filter_keypress     (GtkIMContext   *context,
 
104
                                             GdkEventKey    *event);
 
105
void     gtk_im_context_focus_in            (GtkIMContext   *context);
 
106
void     gtk_im_context_focus_out           (GtkIMContext   *context);
 
107
void     gtk_im_context_reset               (GtkIMContext   *context);
 
108
void     gtk_im_context_set_cursor_location (GtkIMContext   *context,
 
109
                                             GdkRectangle   *area);
 
110
void     gtk_im_context_set_use_preedit     (GtkIMContext   *context,
 
111
                                             gboolean        use_preedit);
 
112
void     gtk_im_context_set_surrounding     (GtkIMContext   *context,
 
113
                                             const gchar    *text,
 
114
                                             gint            len,
 
115
                                             gint            cursor_index);
 
116
gboolean gtk_im_context_get_surrounding     (GtkIMContext   *context,
 
117
                                             gchar         **text,
 
118
                                             gint           *cursor_index);
 
119
gboolean gtk_im_context_delete_surrounding  (GtkIMContext   *context,
 
120
                                             gint            offset,
 
121
                                             gint            n_chars);
 
122
 
 
123
G_END_DECLS
 
124
 
 
125
#endif /* __GTK_IM_CONTEXT_H__ */