gnome-panel.idl 2.5 KB
Newer Older
1 2 3 4
/*
 * The cookie is an extremely *BAD* hack that we have implemented
 * for security reasons for *NOW*
 */
5 6
module GNOME {
	interface Panel {
7
		/* requests an ID on the panel */
8 9
		short applet_request_id(in string cookie,
					in string path,
10
					in string param,
11
					in short dorestart,
12
					out string cfgpath,
13 14
					out string globcfgpath,
					out unsigned long wid);
15 16 17

		/* Sends the object identifier for the Applet server that
		   contacts the Panel */
18 19
		void applet_register(in string cookie, in string ior,
				     in short applet_id);
20

21
		/*abort the applet load (before we register)*/
22
		void applet_abort_id(in string cookie, in short applet_id);
23
		
24 25 26 27
		void applet_request_glob_cfg(in string cookie,
					     out string globcfgpath);
		void applet_remove_from_panel (in string cookie,
					       in short applet_id);
28 29
		short applet_get_panel (in string cookie, in short applet_id);
		short applet_get_pos (in string cookie, in short applet_id);
30 31
		short applet_get_panel_orient (in string cookie,
					       in short applet_id);
32 33 34 35 36
		void applet_show_menu (in string cookie, in short applet_id);
		void applet_drag_start (in string cookie, in short applet_id);
		void applet_drag_stop (in string cookie, in short applet_id);
		void applet_add_callback (in string cookie, 
					  in short applet_id,
37
					  in string callback_name,
38
					  in string stock_item,
39
					  in string menuitem_text);
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
40 41 42
		void applet_remove_callback (in string cookie,
					     in short applet_id,
					     in string callback_name);
43 44 45 46 47
		void applet_add_tooltip (in string cookie, in short applet_id,
					 in string tooltip);
		void applet_remove_tooltip (in string cookie,
					    in short applet_id);
		short applet_in_drag (in string cookie);
48 49
		void sync_config (in string cookie);
		void quit (in string cookie);
50 51 52
	};

	interface Applet {
53 54 55 56 57 58
		void change_orient (in string cookie,
				    in short applet_id,
				    in short orient);
		void do_callback (in string cookie,
				  in short applet_id,
				  in string callback_name);
59 60
		short session_save (in string cookie,
				    in short applet_id,
61 62
				    in string cfgpath,
				    in string globcfgpath);
63 64
		/* params is only used if the applet process handeles more
		   applet types */
65 66 67 68 69 70 71 72 73 74 75
		void start_new_applet (in string cookie,
				       in string param);
		void back_change (in string cookie,
				  in short applet_id,
				  in short back_type,
				  in string pixmap,
				  in short c_red,
				  in short c_green,
				  in short c_blue);
		void tooltips_state (in string cookie,
				     in short enabled);
76 77 78
	};
};