diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c index 301a739326..91fb0482f5 100644 --- a/gtk/deprecated/gtkstatusicon.c +++ b/gtk/deprecated/gtkstatusicon.c @@ -728,7 +728,7 @@ wndproc (HWND hwnd, GtkStatusIconPrivate *priv = status_icon->priv; priv->nid.hWnd = hwnd; - priv->nid.uID = GPOINTER_TO_UINT (status_icon); + priv->nid.uID = status_icon_id++; priv->nid.uCallbackMessage = WM_GTK_TRAY_NOTIFICATION; priv->nid.uFlags = NIF_MESSAGE;