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
;
21 extern gint screen_width
, screen_height
;
23 typedef void (*HelpFunc
)(gpointer data
);
24 typedef const char *ParseFunc(gchar
*line
);
26 void gui_support_init();
27 int get_choice(const char *title
,
29 int number_of_buttons
, ...);
30 void report_error(const char *message
, ...);
31 void set_cardinal_property(GdkWindow
*window
, GdkAtom prop
, guint32 value
);
32 void make_panel_window(GtkWidget
*widget
);
33 gint
hide_dialog_event(GtkWidget
*widget
, GdkEvent
*event
, gpointer window
);
34 void delayed_error(const char *error
, ...);
35 gboolean
load_file(const char *pathname
, char **data_out
, long *length_out
);
36 GtkWidget
*new_help_button(HelpFunc show_help
, gpointer data
);
37 void parse_file(const char *path
, ParseFunc
*parse_line
);
38 gboolean
setup_xdnd_proxy(guint32 xid
, GdkWindow
*proxy_window
);
39 void release_xdnd_proxy(guint32 xid
);
40 GdkWindow
*find_click_proxy_window(void);
41 gboolean
get_pointer_xy(int *x
, int *y
);
42 void centre_window(GdkWindow
*window
, int x
, int y
);
43 void wink_widget(GtkWidget
*widget
);
44 void destroy_on_idle(GtkWidget
*widget
);
45 gboolean
rox_spawn(const gchar
*dir
, const gchar
**argv
);
46 void add_default_styles(void);
47 GtkWidget
*button_new_mixed(const char *stock
, const char *message
);
49 #endif /* _GUI_SUPPORT_H */