~ubuntu-branches/ubuntu/precise/gnome-control-center/precise-updates

« back to all changes in this revision

Viewing changes to panels/keyboard/eggcellrendererkeys.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Jeremy Bicha, Ken VanDine
  • Date: 2012-02-15 23:16:31 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20120215231631-vk7me0mhofpsq0hp
Tags: 1:3.3.5-0ubuntu1
* Upload the new serie, that will bring in quite some fixes, we revert
  some problematic or risky changes as well
* The new version includes those fixes:
  - "Change Password in User Accounts panel focuses "New password" field, 
     skipping "Current password"" (lp: #821759)
  - The dialog to add online accounts should have a title 
    (lp: #822380)
  - "Remove Profile" button clickable in Color panel when 
     no profile selected (lp: #869603)
  - Move Removable Media into System Info (lp: #835880)
  - Sound preferences: mouse scrolling balance only works for right.
    (lp: #918017)
  - gnome-control-center SIGSEGV in actualize_printers_list() 
    (lp: #903009)
  - selecting preffered applications is not an info (lp: #890143)
  - Add a keyboard shortcut by default for take screenshot of a selection"
    (lp: #625518)
* debian/patches/revert_git_datetime_port.patch:
  - revert use of datetimed, we don't use systemd and ubuntu-system-service 
    doesn't support it yet
* debian/patches/revert_git_drop_library.patch:
  - consolidate "01_allow_external_panels.patch", don't drop the library
    we use it from other components on ubuntu, the patch will be improved
    later to not use a copy of files like it does in that version
* debian/patches/revert_git_stop_using_gconf.patch,
  debian/patches/revert_ua_gsettings.patch,
  debian/patches/revert_git_keyboard_gsettings.patch:
  - revert keyboard porting to gsettings, compiz still use gconf and we
    didn't update gnome-shell to the new serie (yet)

[ Jeremy Bicha ]
* New upstream release (Thanks Rico Tzchichholz!)
* debian/control.in:
  - Bump minimum dependency versions and add libwacom dependency
* debian/rules: Build without -Wl,-z,defs
* debian/watch: Watch for unstable releases
* Refreshed patches:
  - 01_allow_external_panels.patch
  - 04_add_theme_selection.patch
  - 50_ubuntu_systemwide_prefs.patch
  - 58_ubuntu_icon_views_redesign.patch
  - 59_install_gcm_components_on_demand.patch
  - 91_configure_cheese.patch
* Dropped upstream patches:
  - 00git_handle_media_dialog_close.patch
  - 03_show_wacom_under_unity.patch
  - 90_git_sound_tab_order.patch
  - 91_git_build_use_fontconfig.patch
  - 92_git_minimal_output_height.patch
  - 93_change_window_role_on_panel_change.patch
  - 94_git_adding_shortcuts.patch
  - 95_git_ctrlw_shortcut.patch
  - git_extra_keywords.patch

[ Ken VanDine ]
* debian/patches/96_sound_nua_panel.patch
  - refreshed with latest changes from ronoc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* gtkcellrendererkeybinding.h
2
 
 * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
3
 
 *
4
 
 * This library is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU Library 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
 
 * Library General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Library 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 __EGG_CELL_RENDERER_KEYS_H__
21
 
#define __EGG_CELL_RENDERER_KEYS_H__
22
 
 
23
 
#include <gtk/gtk.h>
24
 
#include "eggaccelerators.h"
25
 
 
26
 
G_BEGIN_DECLS
27
 
 
28
 
#define EGG_TYPE_CELL_RENDERER_KEYS             (egg_cell_renderer_keys_get_type ())
29
 
#define EGG_CELL_RENDERER_KEYS(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeys))
30
 
#define EGG_CELL_RENDERER_KEYS_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeysClass))
31
 
#define EGG_IS_CELL_RENDERER_KEYS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_CELL_RENDERER_KEYS))
32
 
#define EGG_IS_CELL_RENDERER_KEYS_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_CELL_RENDERER_KEYS))
33
 
#define EGG_CELL_RENDERER_KEYS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeysClass))
34
 
 
35
 
typedef struct _EggCellRendererKeys      EggCellRendererKeys;
36
 
typedef struct _EggCellRendererKeysClass EggCellRendererKeysClass;
37
 
 
38
 
 
39
 
typedef enum
40
 
{
41
 
  EGG_CELL_RENDERER_KEYS_MODE_GTK,
42
 
  EGG_CELL_RENDERER_KEYS_MODE_X
43
 
} EggCellRendererKeysMode;
44
 
 
45
 
struct _EggCellRendererKeys
46
 
{
47
 
  GtkCellRendererText parent;
48
 
  guint accel_key;
49
 
  guint keycode;
50
 
  EggVirtualModifierType accel_mask;
51
 
  GtkWidget *edit_widget;
52
 
  GtkWidget *grab_widget;
53
 
  guint edit_key;
54
 
  GtkWidget *sizing_label;
55
 
  EggCellRendererKeysMode accel_mode;
56
 
};
57
 
 
58
 
struct _EggCellRendererKeysClass
59
 
{
60
 
  GtkCellRendererTextClass parent_class;
61
 
 
62
 
  void (* accel_edited) (EggCellRendererKeys    *keys,
63
 
                         const char             *path_string,
64
 
                         guint                   keyval,
65
 
                         EggVirtualModifierType  mask,
66
 
                         guint                   hardware_keycode);
67
 
 
68
 
  void (* accel_cleared) (EggCellRendererKeys    *keys,
69
 
                          const char             *path_string);
70
 
};
71
 
 
72
 
GType            egg_cell_renderer_keys_get_type        (void);
73
 
GtkCellRenderer *egg_cell_renderer_keys_new             (void);
74
 
 
75
 
void             egg_cell_renderer_keys_set_accelerator (EggCellRendererKeys     *keys,
76
 
                                                         guint                    keyval,
77
 
                                                         guint                    keycode,
78
 
                                                         EggVirtualModifierType   mask);
79
 
void             egg_cell_renderer_keys_get_accelerator (EggCellRendererKeys     *keys,
80
 
                                                         guint                   *keyval,
81
 
                                                         EggVirtualModifierType  *mask);
82
 
void             egg_cell_renderer_keys_set_accel_mode  (EggCellRendererKeys     *keys,
83
 
                                                         EggCellRendererKeysMode  accel_mode);
84
 
 
85
 
 
86
 
G_END_DECLS
87
 
 
88
 
 
89
 
#endif /* __GTK_CELL_RENDERER_KEYS_H__ */