~ubuntu-branches/ubuntu/oneiric/mousetweaks/oneiric

« back to all changes in this revision

Viewing changes to src/mt-settings.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2010-11-10 11:40:46 UTC
  • mfrom: (1.1.47 upstream)
  • Revision ID: james.westby@ubuntu.com-20101110114046-gd7qvdqsvnj3zcfb
Tags: 2.91.2-0ubuntu1
* New upstream release
  - Misc changes, improvements and fixes:
    + Add gsettings convert data
    + Add "geometry" option to set size and position of the click-type window
    + Add new "orientation" option to the click-type window
    + Remove "animate-cursor" option
    + Update git.mk
    + Sync with changes in gsettings-desktop-schemas
    + Fix mem leak and reduce nr. of cursor image copies
    + Don't emit cursor_changed signals if we have set the cursor
    + Bump gsettings-desktop-schemas dependency to 0.1.0
    + Remove mt-main header file
    + Disable panel applets by default for GNOME 3
    + Use gdk_display_get_default instead of GDK_DISPLAY (Javier Jardón)
    + Remove GdkGc based drawing code
    + Use a common X Display accessor
    + Remove mouse orientation checks
    + Only install man pages if the applets are built
    + Sync with GSettings changes in gnome-settings-daemon
    + Launch UA panel instead of the mouse capplet
  - Bug fixes:
    + #633844: L10N: Fix a typo
    + #633932: L10N: Add translation comments for button orientation
    + #631533: Adapt to GtkObject removal in GTK3 (Javier Jardón)
    + #620171: Migrate to GSettings
  - New and updated translations:
    + [ca] Carles Ferrando
    + [es] Jorge González
    + [gl] Fran Diéguez
    + [he] Yaron Shahrabani
    + [ja] Takayuki KUSANO
    + [sk] Pavol Šimo
    + [sl] Matej Urbančič
    + [el] Simos Xenitellis
    + [et] Ivar Smolin
    + [ko] Changwoo Ryu
    + [lt] Žygimantas Beručka
* debian/control:
  - Drop libatspi-dev from Build-Depends
  - Add gsettings-desktop-schemas-dev >= 0.1.0 to Build-Depends
  - Build depend on GTK 3.0 >= 2.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2010 Gerd Kohlberger <gerdko gmail com>
 
3
 *
 
4
 * This file is part of Mousetweaks.
 
5
 *
 
6
 * Mousetweaks is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * Mousetweaks is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef __MT_SETTINGS_H__
 
21
#define __MT_SETTINGS_H__
 
22
 
 
23
#include <gio/gio.h>
 
24
 
 
25
#include "mt-common.h"
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define MT_TYPE_SETTINGS  (mt_settings_get_type ())
 
30
#define MT_SETTINGS(o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), MT_TYPE_SETTINGS, MtSettings))
 
31
#define MT_IS_SETTINGS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MT_TYPE_SETTINGS))
 
32
 
 
33
typedef GObjectClass MtSettingsClass;
 
34
typedef struct _MtSettings MtSettings;
 
35
 
 
36
struct _MtSettings
 
37
{
 
38
    GObject                         parent;
 
39
 
 
40
    GSettings                      *mt_settings;
 
41
    GSettings                      *a11y_settings;
 
42
 
 
43
    gint                            dwell_threshold;
 
44
    GDesktopMouseDwellMode          dwell_mode;
 
45
    GDesktopMouseDwellDirection     dwell_gesture_single;
 
46
    GDesktopMouseDwellDirection     dwell_gesture_double;
 
47
    GDesktopMouseDwellDirection     dwell_gesture_drag;
 
48
    GDesktopMouseDwellDirection     dwell_gesture_secondary;
 
49
 
 
50
    MtClickTypeWindowStyle          ctw_style;
 
51
    MtClickTypeWindowOrientation    ctw_orientation;
 
52
    gchar                          *ctw_geometry;
 
53
 
 
54
    guint                           ctw_visible    : 1;
 
55
    guint                           dwell_enabled  : 1;
 
56
    guint                           ssc_enabled    : 1;
 
57
};
 
58
 
 
59
GType             mt_settings_get_type              (void) G_GNUC_CONST;
 
60
MtSettings *      mt_settings_get_default           (void);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif /* __MT_SETTINGS_H__ */