File: mouse-plugin-internal.h

package info (click to toggle)
xfce-mcs-plugins 4.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,356 kB
  • ctags: 563
  • sloc: sh: 9,290; ansic: 6,713; xml: 932; makefile: 437
file content (103 lines) | stat: -rw-r--r-- 2,865 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
 *  xfce4 mouse settings
 *
 *  Copyright (c) 2002 Olivier Fourdan
 *  Copyright (c) 2005 Pasi Orovuo <pasi.ov@gmail.com>
 *  Copyright (c) 2005 Brian Tarricone <bjt23@cornell.edu>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; version 2 of the License ONLY.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __MOUSE_PLUGIN_INTERNAL_H__
#define __MOUSE_PLUGIN_INTERNAL_H__

#include <gtk/gtk.h>
#include <xfce-mcs-manager/manager-plugin.h>

#define RCDIR "mcs_settings"
#define OLDRCDIR "settings"
#define CHANNEL1 "settings"
#define RCFILE1 "gtk.xml"
#define CHANNEL2 "mouse"
#define RCFILE2 "mouse.xml"
#define PLUGIN_NAME "mouse"

typedef struct _Itf
{
    McsPlugin *mcs_plugin;

    GSList *radiobutton1_group;

    GtkWidget *mouse_dialog;
    GtkWidget *dialog_vbox1;
    GtkWidget *notebook_vbox;
    GtkWidget *notebook;
    
    /* mouse behavior tab */
    GtkWidget *vbox1;
    GtkWidget *frame1;
    GtkWidget *hbox2;
    GtkWidget *radiobutton1;
    GtkWidget *radiobutton2;
    GtkWidget *label1;
    GtkWidget *frame2;
    GtkWidget *table1;
    GtkWidget *label3;
    GtkWidget *label4;
    GtkWidget *hscale1;
    GtkWidget *label5;
    GtkWidget *label6;
    GtkWidget *label7;
    GtkWidget *hscale2;
    GtkWidget *label8;
    GtkWidget *label2;
    GtkWidget *frame3;
    GtkWidget *table2;
    GtkWidget *label11;
    GtkWidget *hscale3;
    GtkWidget *label12;
    GtkWidget *label10;
    GtkWidget *label9;
    GtkWidget *frame4;
    GtkWidget *table3;
    GtkWidget *label14;
    GtkWidget *label15;
    GtkWidget *label16;
    GtkWidget *hscale4;
    GtkWidget *label13;
    GtkWidget *dialog_action_area1;
    GtkWidget *closebutton1;
    
    /* cursor tab */
    GtkWidget *cursor_page;
    GtkWidget *cursor_theme_list;
    GtkWidget *cursor_preview_list;
    GtkWidget *cursor_size_spinbtn;

#ifdef USE_XKB
		/* accessibility tab */
		GtkWidget *accessx_page;
    GtkWidget *checkbutton_mouse;
    GtkWidget *scale_mouse_keys_delay;
    GtkWidget *scale_mouse_keys_interval;
    GtkWidget *scale_mouse_keys_ttm;
    GtkWidget *scale_mouse_keys_max_speed;
#endif
} Itf;

void mouse_plugin_set_initial_cursor_values(McsPlugin *mcs_plugin);
void mouse_plugin_create_cursor_page(Itf *itf);
gboolean mouse_plugin_write_options(McsPlugin *mcs_plugin);

#endif