~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to toolbox/toolboxGtkInt.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-15 21:21:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080815212140-05fhxj8wroosysmj
Tags: 2008.08.08-109361-1ubuntu1
* Merge from Debian unstable (LP: #258393), remaining Ubuntu change:
  - add ubuntu_toolchain_FTBFS.dpatch patch, fix FTBFS
* Update ubuntu_toolchain_FTBFS.dpatch patch for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 2004 VMware, Inc. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify it
 
5
 * under the terms of the GNU Lesser General Public License as published
 
6
 * by the Free Software Foundation version 2.1 and no later version.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
10
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
 
11
 * License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 
15
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
 
16
 *
 
17
 *********************************************************/
 
18
 
 
19
/*
 
20
 * toolboxInt.h --
 
21
 *
 
22
 *     Common defines used by the gtk toolbox
 
23
 */
 
24
#ifndef _TOOLBOX_GTK_INT_H_
 
25
# define _TOOLBOX_GTK_INT_H_
 
26
 
 
27
#include <X11/Xlib.h>
 
28
#include <gtk/gtk.h>
 
29
#include <gdk/gdkx.h>
 
30
#undef Bool
 
31
#include "toolboxInt.h"
 
32
#include "vm_basic_types.h"
 
33
#include "vm_version.h"
 
34
#include "dbllnklst.h"
 
35
 
 
36
#define RPCIN_POLL_TIME        10  /* in 1/1000ths of a second */
 
37
#define DEVICES_POLL_TIME     100  /* in 1/1000ths of a second */
 
38
#define WIPER_POLL_TIME        10  /* in 1/1000ths of a second */
 
39
#define POST_RESET_TIME       100  /* in 1/1000ths of a second */
 
40
 
 
41
#define SCRIPT_SUSPEND "Suspend Guest Operating System"
 
42
#define SCRIPT_RESUME  "Resume Guest Operating System"
 
43
#define SCRIPT_OFF     "Shut Down Guest Operating System"
 
44
#define SCRIPT_ON      "Power On Guest Operating System"
 
45
 
 
46
#if GTK2
 
47
#define TAB_LABEL_OPTIONS "_Options"
 
48
#define TAB_LABEL_DEVICES "De_vices"
 
49
#define TAB_LABEL_SCRIPTS "Scri_pts"
 
50
#define TAB_LABEL_SHRINK "Shrin_k"
 
51
#define TAB_LABEL_ABOUT "Abo_ut"
 
52
#else
 
53
#define TAB_LABEL_OPTIONS "Options"
 
54
#define TAB_LABEL_DEVICES "Devices"
 
55
#define TAB_LABEL_SCRIPTS "Scripts"
 
56
#define TAB_LABEL_SHRINK "Shrink"
 
57
#define TAB_LABEL_ABOUT "About"
 
58
#endif
 
59
 
 
60
void OnViewportSizeRequest(GtkWidget *widget, GtkRequisition *requisition,
 
61
                           gpointer user_data);
 
62
 
 
63
Bool ToolsMain_YesNoBox(gchar* title, gchar *msg);
 
64
void ToolsMain_MsgBox(gchar* title, gchar *msg);
 
65
void ToolsMain_OnDestroy(GtkWidget *widget, gpointer data);
 
66
 
 
67
GtkWidget* About_Create(GtkWidget* mainWnd);
 
68
GtkWidget* Devices_Create(GtkWidget* mainWnd);
 
69
GtkWidget* Options_Create(GtkWidget* mainWnd);
 
70
GtkWidget* Scripts_Create(GtkWidget* mainWnd);
 
71
GtkWidget* Shrink_Create(GtkWidget* mainWnd);
 
72
 
 
73
void Options_OnTimeSyncToggled(gpointer btn, gpointer data);
 
74
void Devices_OnDeviceToggled(gpointer btn, gpointer data);
 
75
void Pointer_SetXCursorPos(int x, int y);
 
76
void Scripts_OnApply(gpointer btn, gpointer data);
 
77
 
 
78
extern GdkPixmap* pixmap;
 
79
extern GdkBitmap* bitmask;
 
80
extern GdkColormap* colormap;
 
81
extern GtkWidget *optionsTimeSync;
 
82
extern DblLnkLst_Links *gEventQueue;
 
83
extern GtkWidget *scriptsApply;
 
84
 
 
85
#endif // _TOOLBOX_INT_H_