source: trunk/third/gnome-applets/drivemount/drivemount.h @ 20910

Revision 20910, 1.8 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20909, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 *  This program is free software; you can redistribute it and/or modify
3 *  it under the terms of the GNU General Public License as published by
4 *  the Free Software Foundation; either version 2 of the License, or
5 *  (at your option) any later version.
6 *
7 *  This program is distributed in the hope that it will be useful,
8 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *  GNU General Public License for more details.
11 *
12 *  You should have received a copy of the GNU General Public License
13 *  along with this program; if not, write to the Free Software
14 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16
17#include <glib.h>
18
19#include <stdio.h>
20#include <string.h>
21#include <sys/stat.h>
22#include <sys/types.h>
23
24#include <libgnome/libgnome.h>
25#include <libgnomeui/libgnomeui.h>
26#include <panel-applet.h>
27
28#ifndef _DRIVEMOUNT_APPLET_H_
29#define _DRIVEMOUNT_APPLET_H_
30
31G_BEGIN_DECLS
32
33#define ICON_HEIGHT 10
34#define ICON_WIDTH  40
35
36extern const int icon_list_count;
37
38typedef struct _DriveData DriveData;
39
40struct _DriveData
41{
42        GtkWidget *applet;
43        GtkWidget *button;
44        GtkWidget *button_pixmap;
45        gint device_pixmap;
46        gint timeout_id;
47        gint interval;
48        gint mounted;
49        gchar *mount_base;
50        gchar *mount_point;
51        gint scale_applet;
52        gint auto_eject;
53        gint autofs_friendly;
54        PanelAppletOrient orient;
55        GtkTooltips *tooltips;
56        gint sizehint;
57
58        gchar *custom_icon_in;
59        gchar *custom_icon_out;
60
61        GtkWidget *error_dialog;
62        GtkWidget *about_dialog;
63        GtkWidget *prop_dialog;
64};
65
66void redraw_pixmap(DriveData *dd);
67void start_callback_update(DriveData *dd);
68GtkWidget* hig_dialog_new (GtkWindow      *parent,
69                           GtkDialogFlags flags,
70                           GtkMessageType type,
71                           GtkButtonsType buttons,
72                           const gchar    *header,
73                           const gchar    *message);
74
75G_END_DECLS
76#endif
Note: See TracBrowser for help on using the repository browser.