Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Fix GtkIcons import. (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
foudfou committed Apr 6, 2015
1 parent c21586d commit a627772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/linux/FiretrayChatStatusIcon.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Cu.import("resource://firetray/ctypes/linux/gdk.jsm");
Cu.import("resource://firetray/ctypes/linux/gio.jsm");
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
Cu.import("resource://firetray/ctypes/linux/gtk.jsm");
Cu.import("resource://firetray/linux/FiretrayGtkIcons.jsm");
Cu.import("resource://firetray/linux/FiretrayWindow.jsm");
Cu.import("resource://firetray/commons.js");
firetray.Handler.subscribeLibsForClosing([gdk, gio, gobject, gtk]);
Expand Down Expand Up @@ -51,9 +52,9 @@ firetray.ChatStatusIcon = {

init: function() {
if (!firetray.Handler.appHasChat) throw "ChatStatusIcon for chat app only";
firetray.GtkIcons.init();

this.trayIcon = gtk.gtk_status_icon_new();
firetray.GtkIcons.init();
this.loadThemedIcons();
this.setIconImage(this.themedIconNameCurrent || FIRETRAY_IM_STATUS_OFFLINE); // updated in Chat anyway
this.setIconTooltipDefault();
Expand All @@ -66,6 +67,7 @@ firetray.ChatStatusIcon = {
shutdown: function() {
this.destroyTimers();
this.destroyIcons();
firetray.GtkIcons.shutdown();
this.initialized = false;
},

Expand Down

0 comments on commit a627772

Please sign in to comment.