1
0
mirror of https://github.com/moparisthebest/FireTray synced 2025-01-08 12:08:05 -05:00

use newer gtk_status_icon_set_tooltip_text()

This commit is contained in:
foudfou 2011-07-11 18:01:52 +02:00
parent cb26f7fd55
commit 7cac32441e
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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,