~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/widgets/gimpcellrendereraccel.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
2
 
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
 
 *
4
 
 * gimpcellrendereraccel.h
5
 
 * Copyright (C) 2004  Michael Natterer <mitch@gimp.org>
6
 
 *
7
 
 * Derived from: libegg/libegg/treeviewutils/eggcellrendererkeys.h
8
 
 * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
9
 
 *
10
 
 * This program is free software; you can redistribute it and/or modify
11
 
 * it under the terms of the GNU General Public License as published by
12
 
 * the Free Software Foundation; either version 2 of the License, or
13
 
 * (at your option) any later version.
14
 
 *
15
 
 * This program is distributed in the hope that it will be useful,
16
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 * GNU General Public License for more details.
19
 
 *
20
 
 * You should have received a copy of the GNU General Public License
21
 
 * along with this program; if not, write to the Free Software
22
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
 
 */
24
 
 
25
 
#ifndef __GIMP_CELL_RENDERER_ACCEL_H__
26
 
#define __GIMP_CELL_RENDERER_ACCEL_H__
27
 
 
28
 
 
29
 
#include <gtk/gtkcellrenderertext.h>
30
 
 
31
 
 
32
 
#define GIMP_TYPE_CELL_RENDERER_ACCEL            (gimp_cell_renderer_accel_get_type ())
33
 
#define GIMP_CELL_RENDERER_ACCEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CELL_RENDERER_ACCEL, GimpCellRendererAccel))
34
 
#define GIMP_CELL_RENDERER_ACCEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CELL_RENDERER_ACCEL, GimpCellRendererAccelClass))
35
 
#define GIMP_IS_CELL_RENDERER_ACCEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CELL_RENDERER_ACCEL))
36
 
#define GIMP_IS_CELL_RENDERER_ACCEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CELL_RENDERER_ACCEL))
37
 
#define GIMP_CELL_RENDERER_ACCEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CELL_RENDERER_ACCEL, GimpCellRendererAccelClass))
38
 
 
39
 
 
40
 
typedef struct _GimpCellRendererAccelClass GimpCellRendererAccelClass;
41
 
 
42
 
struct _GimpCellRendererAccel
43
 
{
44
 
  GtkCellRendererText  parent_instance;
45
 
 
46
 
  guint                accel_key;
47
 
  GdkModifierType      accel_mask;
48
 
 
49
 
  GtkWidget           *edit_widget;
50
 
  GtkWidget           *grab_widget;
51
 
  guint                edit_key;
52
 
 
53
 
  GtkWidget           *sizing_label;
54
 
};
55
 
 
56
 
struct _GimpCellRendererAccelClass
57
 
{
58
 
  GtkCellRendererTextClass  parent_class;
59
 
 
60
 
  void (* accel_edited) (GimpCellRendererAccel *accel,
61
 
                         const char            *path_string,
62
 
                         gboolean               delete,
63
 
                         guint                  accel_key,
64
 
                         GdkModifierType        accel_mask);
65
 
};
66
 
 
67
 
 
68
 
GType             gimp_cell_renderer_accel_get_type (void);
69
 
GtkCellRenderer * gimp_cell_renderer_accel_new      (void);
70
 
 
71
 
void gimp_cell_renderer_accel_set_accelerator (GimpCellRendererAccel *accel,
72
 
                                               guint                  accel_kaey,
73
 
                                               GdkModifierType        accel_mask);
74
 
void gimp_cell_renderer_accel_get_accelerator (GimpCellRendererAccel *accel,
75
 
                                               guint                 *accel_key,
76
 
                                               GdkModifierType       *accel_mask);
77
 
 
78
 
 
79
 
#endif /* __GIMP_CELL_RENDERER_ACCEL_H__ */