4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
13 #define WIN_STATE_STICKY (1<<0) /* Fixed relative to screen */
14 #define WIN_STATE_HIDDEN (1<<4) /* Not on taskbar but window visible */
15 #define WIN_STATE_FIXED_POSITION (1<<8) /* Window is fixed in position even */
16 #define WIN_STATE_ARRANGE_IGNORE (1<<9) /* Ignore for auto arranging */
18 extern GdkFont
*fixed_font
;
19 extern GdkFont
*item_font
;
20 extern GtkStyle
*fixed_style
;
21 extern gint fixed_width
;
24 extern gint screen_width
, screen_height
;
26 typedef void (*HelpFunc
)(gpointer data
);
27 typedef char *ParseFunc(guchar
*line
);
29 void gui_support_init();
30 int get_choice(char *title
,
32 int number_of_buttons
, ...);
33 void report_error(char *title
, char *message
, ...);
34 void report_rox_error(char *message
, ...);
35 void set_cardinal_property(GdkWindow
*window
, GdkAtom prop
, guint32 value
);
36 void make_panel_window(GdkWindow
*window
);
37 gint
hide_dialog_event(GtkWidget
*widget
, GdkEvent
*event
, gpointer window
);
38 void delayed_error(char *title
, char *error
, ...);
39 void delayed_rox_error(char *error
, ...);
40 gboolean
load_file(char *pathname
, char **data_out
, long *length_out
);
41 GtkWidget
*new_help_button(HelpFunc show_help
, gpointer data
);
42 void parse_file(char *path
, ParseFunc
*parse_line
);
43 gboolean
setup_xdnd_proxy(guint32 xid
, GdkWindow
*proxy_window
);
44 void release_xdnd_proxy(guint32 xid
);
45 GdkWindow
*find_click_proxy_window(void);
46 gboolean
get_pointer_xy(int *x
, int *y
);
47 void centre_window(GdkWindow
*window
, int x
, int y
);
48 void make_colour_patch(GtkWidget
*button
);
49 void button_patch_set_colour(GtkWidget
*button
, GdkColor
*color
);
50 GdkColor
*button_patch_get_colour(GtkWidget
*button
);
51 void wink_widget(GtkWidget
*widget
);
52 void destroy_on_idle(GtkWidget
*widget
);
54 #endif /* _GUI_SUPPORT_H */