1998-03-20 02:00:09 +00:00
|
|
|
#ifndef _GDESKTOP_H
|
|
|
|
#define _GDESKTOP_H
|
|
|
|
|
1998-02-27 05:12:09 +00:00
|
|
|
#define MC_LIB_DESKTOP "mc.desktop"
|
1998-03-06 06:03:30 +00:00
|
|
|
|
1998-03-20 02:00:09 +00:00
|
|
|
|
|
|
|
/* Types of desktop icons:
|
|
|
|
*
|
|
|
|
* o Application: Double click: start up application;
|
|
|
|
* Dropping: start up program with arguments.
|
|
|
|
*
|
|
|
|
* o Directory: Double click: opens the directory in a panel.
|
|
|
|
* Double click: copies/moves files.
|
|
|
|
*
|
|
|
|
* o File: Opens the application according to regex_command
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
application,
|
|
|
|
directory,
|
|
|
|
file
|
|
|
|
} icon_t;
|
|
|
|
|
|
|
|
/* A structure that describes each icon on the desktop */
|
|
|
|
typedef struct {
|
|
|
|
GnomeDesktopEntry *dentry;
|
|
|
|
GtkWidget *widget;
|
|
|
|
icon_t type;
|
|
|
|
int x, y;
|
1998-04-15 03:16:29 +00:00
|
|
|
int grid_x, grid_y;
|
1998-03-20 02:00:09 +00:00
|
|
|
char *pathname;
|
|
|
|
} desktop_icon_t;
|
|
|
|
|
1998-04-15 03:16:29 +00:00
|
|
|
/* size of the snap to grid size */
|
|
|
|
#define SNAP_X 80
|
|
|
|
#define SNAP_Y 80
|
1998-03-20 02:00:09 +00:00
|
|
|
|
1998-03-06 06:03:30 +00:00
|
|
|
/* gtrans.c */
|
1998-04-14 19:08:15 +00:00
|
|
|
|
|
|
|
extern int want_transparent_icons;
|
|
|
|
extern int want_transparent_text;
|
|
|
|
|
1998-03-05 04:53:47 +00:00
|
|
|
GtkWidget *create_transparent_text_window (char *file, char *text, int extra_events);
|
1998-03-06 03:48:31 +00:00
|
|
|
GtkWidget *make_transparent_window (char *file);
|
1998-03-06 06:03:30 +00:00
|
|
|
|
|
|
|
/* gdesktop.c */
|
1998-03-18 06:24:20 +00:00
|
|
|
void drop_on_directory (GdkEventDropDataAvailable *event, char *dest, int force_manually);
|
1998-04-15 03:16:29 +00:00
|
|
|
void gnome_arrange_icons (void);
|
1998-03-19 02:57:01 +00:00
|
|
|
void artificial_drag_start (GdkWindow *source_window, int x, int y);
|
1998-04-17 00:59:58 +00:00
|
|
|
void start_desktop (void);
|
|
|
|
void stop_desktop (void);
|
|
|
|
|
1998-05-23 00:55:03 +00:00
|
|
|
/* These get invoked by the context sensitive popup menu in gscreen.c */
|
|
|
|
void desktop_icon_properties (GtkWidget *widget, desktop_icon_t *di);
|
|
|
|
void desktop_icon_execute (GtkWidget *widget, desktop_icon_t *di);
|
|
|
|
void desktop_icon_delete (GtkWidget *widget, desktop_icon_t *di);
|
|
|
|
|
|
|
|
/* Pops up the context sensitive menu for a WPanel or a desktop_icon_t */
|
|
|
|
void file_popup (GdkEventButton *event, void *WPanel_pointer, void *desktop_icon_t_pointer, int row, char *filename);
|
|
|
|
|
1998-04-15 03:16:29 +00:00
|
|
|
extern int icons_snap_to_grid;
|
1998-03-20 02:00:09 +00:00
|
|
|
|
|
|
|
#endif
|