mirror of
https://github.com/moparisthebest/FireTray
synced 2025-01-09 04:28:16 -05:00
use newer gtk_status_icon_set_tooltip_text()
This commit is contained in:
parent
cb26f7fd55
commit
7cac32441e
@ -25,15 +25,15 @@ mozt.Main = {
|
||||
|
||||
LibGtkStatusIcon.init();
|
||||
this.tray_icon = LibGtkStatusIcon.gtk_status_icon_new();
|
||||
var mozApp = mozt.Utils.appInfoService.name.toLowerCase();
|
||||
var icon_filename = MOZT_ICON_DIR + mozApp + MOZT_ICON_SUFFIX;
|
||||
var mozApp = mozt.Utils.appInfoService.name;
|
||||
var icon_filename = MOZT_ICON_DIR + mozApp.toLowerCase() + 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");
|
||||
LibGtkStatusIcon.gtk_status_icon_set_tooltip_text(this.tray_icon,
|
||||
mozApp);
|
||||
|
||||
mozt.Debug.dump('Moztray LOADED !');
|
||||
this.initialized = true;
|
||||
|
@ -69,8 +69,8 @@ var LibGtkStatusIcon = {
|
||||
ctypes.char.ptr
|
||||
);
|
||||
|
||||
this.gtk_status_icon_set_tooltip = this._lib.declare(
|
||||
"gtk_status_icon_set_tooltip",
|
||||
this.gtk_status_icon_set_tooltip_text = this._lib.declare(
|
||||
"gtk_status_icon_set_tooltip_text",
|
||||
ctypes.default_abi,
|
||||
ctypes.void_t,
|
||||
this.GtkStatusIconRef,
|
||||
|
Loading…
Reference in New Issue
Block a user