r1447: Middle button clicks on the pinboard are passed to the window manager.
[rox-filer.git] / ROX-Filer / src / sc.h
blobd1da9bac6298a615b818c3764dbf9836bbb5eca1
1 /* sc.h - XSMP client support */
3 #ifndef _SC_ALU_H_
4 #define _SC_ALU_H_
6 #include <gtk/gtk.h>
7 #include <X11/SM/SMlib.h>
9 typedef struct _SmProperty {
10 SmProp prop;
11 gboolean set;
12 } SmProperty;
14 typedef struct _SmClient SmClient;
16 struct _SmClient {
17 gchar *id;
18 GSList *props;
19 gboolean (*save_yourself_fn)(SmClient *client);
20 void (*shutdown_cancelled_fn)(SmClient *client);
21 void (*save_complete_fn)(SmClient *client);
22 void (*die_fn)(SmClient *client);
23 SmcConn conn;
24 IceConn ice_conn;
25 gint fd;
26 gint input_tag;
29 gboolean sc_session_up();
30 SmClient *sc_new(gchar *client_id);
31 gboolean sc_connect(SmClient *client);
32 void sc_get_prop_value(SmClient *client, const gchar *name,
33 SmPropValue **val_ret, gint *nvals_ret);
34 void sc_set_list_of_array_prop(SmClient *client, const gchar *name,
35 const gchar *vals[], gint nvals);
36 void sc_set_array_prop(SmClient *client, const gchar *name, const gchar *vals);
37 void sc_set_card_prop(SmClient *client, const gchar *name, gchar val);
38 void sc_register_properties(SmClient *client);
39 void sc_destroy(SmClient *client);
41 #endif /* _SC_ALU_H */