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 #define WIN_HINTS_SKIP_FOCUS (1<<0) /* Do not focus */
19 #define WIN_HINTS_SKIP_WINLIST (1<<1) /* Not in win list */
20 #define WIN_HINTS_SKIP_TASKBAR (1<<2) /* Not on taskbar */
22 extern GdkFont
*fixed_font
;
23 extern gint screen_width
, screen_height
;
25 typedef void (*HelpFunc
)(gpointer data
);
26 typedef const char *ParseFunc(gchar
*line
);
28 void gui_support_init();
29 int get_choice(const char *title
,
31 int number_of_buttons
, ...);
32 void report_error(const char *message
, ...);
33 void info_message(const char *message
, ...);
34 void set_cardinal_property(GdkWindow
*window
, GdkAtom prop
, guint32 value
);
35 void make_panel_window(GtkWidget
*widget
);
36 void delayed_error(const char *error
, ...);
37 gboolean
load_file(const char *pathname
, char **data_out
, long *length_out
);
38 GtkWidget
*new_help_button(HelpFunc show_help
, gpointer data
);
39 void parse_file(const char *path
, ParseFunc
*parse_line
);
40 gboolean
setup_xdnd_proxy(guint32 xid
, GdkWindow
*proxy_window
);
41 void release_xdnd_proxy(guint32 xid
);
42 GdkWindow
*find_click_proxy_window(void);
43 gboolean
get_pointer_xy(int *x
, int *y
);
44 void centre_window(GdkWindow
*window
, int x
, int y
);
45 void wink_widget(GtkWidget
*widget
);
46 void destroy_on_idle(GtkWidget
*widget
);
47 gboolean
rox_spawn(const gchar
*dir
, const gchar
**argv
);
48 void add_default_styles(void);
49 GtkWidget
*button_new_mixed(const char *stock
, const char *message
);
50 void entry_set_error(GtkWidget
*entry
, gboolean error
);
52 #endif /* _GUI_SUPPORT_H */