Commit ac17b238 authored by Yann Leboulanger's avatar Yann Leboulanger

upgrade trayicon module from gnome-python-extra

parent 1d4eb1aa
This diff is collapsed.
......@@ -45,7 +45,10 @@ struct _EggTrayIcon
Atom selection_atom;
Atom manager_atom;
Atom system_tray_opcode_atom;
Atom orientation_atom;
Window manager_window;
GtkOrientation orientation;
};
struct _EggTrayIconClass
......@@ -55,10 +58,8 @@ struct _EggTrayIconClass
GType egg_tray_icon_get_type (void);
#if EGG_TRAY_ENABLE_MULTIHEAD
EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen,
const gchar *name);
#endif
EggTrayIcon *egg_tray_icon_new (const gchar *name);
......@@ -69,7 +70,7 @@ guint egg_tray_icon_send_message (EggTrayIcon *icon,
void egg_tray_icon_cancel_message (EggTrayIcon *icon,
guint id);
GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon);
G_END_DECLS
......
;; -*- scheme -*-
; object definitions ...
(define-object TrayIcon
(in-module "Egg")
......@@ -17,14 +18,14 @@
(return-type "GType")
)
;;(define-function egg_tray_icon_new_for_screen
;; (c-name "egg_tray_icon_new_for_screen")
;; (return-type "EggTrayIcon*")
;; (parameters
;; '("GdkScreen*" "screen")
;; '("const-gchar*" "name")
;; )
;;)
(define-function egg_tray_icon_new_for_screen
(c-name "egg_tray_icon_new_for_screen")
(return-type "EggTrayIcon*")
(parameters
'("GdkScreen*" "screen")
'("const-gchar*" "name")
)
)
(define-function egg_tray_icon_new
(c-name "egg_tray_icon_new")
......
......@@ -9,6 +9,7 @@ headers
modulename trayicon
%%
import gtk.Plug as PyGtkPlug_Type
import gtk.gdk.Screen as PyGdkScreen_Type
%%
ignore-glob
*_get_type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment