added minimal tooltip (gtk_status_icon_set_tooltip)
TODO: fix warning (?): Gdk-CRITICAL **: IA__gdk_window_get_root_coords: assertion `GDK_IS_WINDOW (window)' failed
This commit is contained in:
parent
fded2c2a31
commit
cb26f7fd55
|
@ -29,6 +29,11 @@ mozt.Main = {
|
|||
var icon_filename = MOZT_ICON_DIR + mozApp + MOZT_ICON_SUFFIX;
|
||||
LibGtkStatusIcon.gtk_status_icon_set_from_file(this.tray_icon,
|
||||
icon_filename);
|
||||
// TODO: produces:
|
||||
// (firefox-bin:5302): Gdk-CRITICAL **: IA__gdk_window_get_root_coords: assertion `GDK_IS_WINDOW (window)' failed
|
||||
// (thunderbird-bin:5380): Gdk-CRITICAL **: IA__gdk_window_get_root_coords: assertion `GDK_IS_WINDOW (window)' failed
|
||||
LibGtkStatusIcon.gtk_status_icon_set_tooltip(this.tray_icon,
|
||||
"Moztray");
|
||||
|
||||
mozt.Debug.dump('Moztray LOADED !');
|
||||
this.initialized = true;
|
||||
|
|
|
@ -69,6 +69,14 @@ var LibGtkStatusIcon = {
|
|||
ctypes.char.ptr
|
||||
);
|
||||
|
||||
this.gtk_status_icon_set_tooltip = this._lib.declare(
|
||||
"gtk_status_icon_set_tooltip",
|
||||
ctypes.default_abi,
|
||||
ctypes.void_t,
|
||||
this.GtkStatusIconRef,
|
||||
ctypes.char.ptr
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue